#28254 [NEW]: Problems with set_error_handler() and E_STRICT notices

From: Date: Sun, 02 May 2004 17:12:17 +0000
Subject: #28254 [NEW]: Problems with set_error_handler() and E_STRICT notices
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59135@lists.php.net to get a copy of this message
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

« previous php.bugs (#59135) next »