ID: 28254
User updated by: Enrico dot Simetti at ingegneria dot studenti dot
unige
Reported By: Enrico dot Simetti at ingegneria dot studenti dot
unige
-Status: Open
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: Windows XP
PHP Version: 5.0.0RC2
New Comment:
seems like it was just my fault ;)
Previous Comments:
------------------------------------------------------------------------
[2004-05-02 19:12:16] Enrico dot Simetti at ingegneria dot studenti dot
unige
Description:
------------
the set_error_handler() seems to not working correctly with E_STRICT
notices.
relevant changes to php.ini:
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = On
Reproduce code:
---------------
class sfc_error {
function __construct() {
set_error_handler(array(&$this, 'handler'), E_ALL | E_STRICT);
}
function handler($errno, $errstr, $errfile, $errline, $errctx) {
//log the error
}
}
Expected result:
----------------
My class should intercept every error and log them.
Actual result:
--------------
All the errors are intercepted, except the E_STRICT ones, which are
displayed (sent to the HTML output) as if my handle routine was
bypassed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28254&edit=1