|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-05 08:05 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 04 17:00:01 2026 UTC |
Description: ------------ If I have custom error handler set and cause error by not giving arguments to function that expects array, PHP deadlocks (endless loop). Without custom error handler same code outputs "Catchable fatal error: Argument 1 passed to ... must be an array, called in ..." Reproduce code: --------------- <?php function error_handler($errno, $errstr, $errfile, $errline, $context) { echo 'OK'; } set_error_handler('error_handler'); class Foo { function foo(array $foo) { } } $foo = new Foo(); $foo->foo(); Expected result: ---------------- 'OK' Actual result: -------------- No output. 100% CPU usage.