ID:               40682
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to