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

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

« previous php.bugs (#59139) next »