#28254 [Csd->Bgs]: Problems with set_error_handler() and E_STRICT notices

From: Date: Sun, 02 May 2004 18:43:24 +0000
Subject: #28254 [Csd->Bgs]: Problems with set_error_handler() and E_STRICT notices
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59142@lists.php.net to get a copy of this message
ID: 28254 Updated by: magnus@php.net 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

« previous php.bugs (#59142) next »