From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 5.0.0RC3
PHP Bug Type: Zend Engine 2 problem
Bug description: call_user_func_array() and Exceptions
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 bug report at http://bugs.php.net/?id=28934&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28934&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28934&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28934&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28934&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28934&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28934&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28934&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28934&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28934&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28934&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28934&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28934&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28934&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28934&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28934&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28934&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28934&r=float