From: [EMAIL PROTECTED]
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