#40682 [Opn->Bgs]: set_error_handler doesn't respect @ operator
| From: | tony2001@php.net | Date: | Thu, 01 Mar 2007 17:03:47 +0000 |
| Subject: | #40682 [Opn->Bgs]: set_error_handler doesn't respect @ operator | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109757@lists.php.net to get a copy of this message | ||
ID: 40682
Updated by: tony2001@php.net
Reported By: quintenbernaert at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.4.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2007-03-01 16:59:03] quintenbernaert at gmail dot com
Description:
------------
set_error_handler doesn't respect the @ operator and it should respect
it. The @ does ignore errors of that function. set_error_handler report
errors. But if I put an @ before a function, set_error_handler still
show the error and it shouldn't show it.
Reproduce code:
---------------
<?php
function errors($errno, $errstr, $errfile, $errline)
{
echo 'Error handler<br /><br />
'.$errno.'<br />
'.$errstr.'<br />
'.$errfile.'<br />
'.$errline.'<br />';
}
set_error_handler("errors");
@getimagesize();
?>
Expected result:
----------------
Empty page.
Actual result:
--------------
Error handler
2
Wrong parameter count for getimagesize()
/home/quinten/www/problem_errorhandler.php
14
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40682&edit=1