Bug #16570: error control operator and set_error_handler()

From: Date: Fri, 12 Apr 2002 16:49:17 +0000
Subject: Bug #16570: error control operator and set_error_handler()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4755@lists.php.net to get a copy of this message
From: alberty@neptunelabs.de Operating system: i686-pc-linux-gnu PHP version: 4.0CVS-2002-04-12 PHP Bug Type: *Programming Data Structures Bug description: error control operator and set_error_handler() Hi, the @ Error Control Operator doesnt suppress warnings (e.g.:E_WARNING), if an own error handler is declared. the follow code snip demonstrate the problem: <?php error_reporting(E_ALL); function error_handler ($errno, $errstr, $errfile, $errline) { echo "$errstr <br>in $errfile<br>line $errline<br>"; } $old_error_handler = set_error_handler('error_handler'); $dbconnect=@mysql_pconnect('foobar-server', 'bart', 'simson'); ?> I think this is a bug, because this behavior is not documented. Regards, Steve -- Edit bug report at http://bugs.php.net/?id=16570&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16570&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16570&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16570&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16570&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16570&r=support Expected behavior: http://bugs.php.net/fix.php?id=16570&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16570&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16570&r=submittedtwice

« previous php.bugs (#4755) next »