unhandled errors in php

Posted by lexus on Stack Overflow See other posts from Stack Overflow or by lexus
Published on 2010-03-27T11:21:57Z Indexed on 2010/03/27 11:33 UTC
Read the original article Hit count: 201

Filed under:
|

How can I know during runtime that my code threw a Warning?

example

try {
    echo (25/0);
} catch (exception $exc) {
    echo "exception catched";
}

throws a "Warning: Division by zero" error that i can not handle on my code.

© Stack Overflow or respective owner

Related posts about php

Related posts about error-handling