From: Enrico dot Simetti at ingegneria dot studenti dot unige dot it
Operating system: Windows XP
PHP version: 5.0.0RC2
PHP Bug Type: Unknown/Other Function
Bug description: Problems with set_error_handler() and E_STRICT notices
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 bug report at http://bugs.php.net/?id=28254&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28254&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28254&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28254&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28254&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28254&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28254&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28254&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28254&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28254&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28254&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28254&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28254&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28254&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28254&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28254&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28254&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28254&r=float