ID: 28934
Comment by: JustinHagstrom at yahoo dot com
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Linux
PHP Version: 5.0.0RC3
New Comment:
This also happens when an exception is thrown in any callback
function.
It is present in the final release of PHP 5 and the snapshots from Aug
01, 2004.
Previous Comments:
------------------------------------------------------------------------
[2004-06-27 23:21:47] [EMAIL PROTECTED]
Description:
------------
When a function called by call_user_func_array() throws an exception,
an error appears: "Warning: call_user_func_array()
[function.call-user-func-array]: Unable to call babba() in
/data/webdev/classes/Tree/demo.php on line 19"
Reproduce code:
---------------
<?php
function babba()
{
throw new Exception('foo');
}
try {
call_user_func_array('babba', array());
} catch (Exception $e) {
// Eek
}
?>
Expected result:
----------------
Nothing
Actual result:
--------------
Warning: call_user_func_array() [function.call-user-func-array]: Unable
to call babba() in /data/webdev/classes/Tree/demo.php on line 43
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28934&edit=1