ID: 28254
Updated by: [EMAIL PROTECTED]
Reported By: Enrico dot Simetti at ingegneria dot studenti dot
unige
-Status: Closed
+Status: Bogus
Bug Type: Unknown/Other Function
-Operating System: Windows XP
+Operating System: Redhat 7.3
-PHP Version: 5.0.0RC2
+PHP Version: 5.0.0RC1
Previous Comments:
------------------------------------------------------------------------
[2004-05-02 19:45:10] Enrico dot Simetti at ingegneria dot studenti dot
unige
seems like it was just my fault ;)
------------------------------------------------------------------------
[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