|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-02 19:45 UTC] Enrico dot Simetti at ingegneria dot studenti dot unige
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Feb 09 05:00:02 2026 UTC |
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.