|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-01 17:03 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 15:00:01 2025 UTC |
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