#29617 [NEW]: call_user_func_array doesn't handle correctly Exceptions
| From: | jpbarrette at savoirfairelinux dot net | Date: | Wed, 11 Aug 2004 14:58:56 +0000 |
| Subject: | #29617 [NEW]: call_user_func_array doesn't handle correctly Exceptions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-64430@lists.php.net to get a copy of this message | ||
From: jpbarrette at savoirfairelinux dot net
Operating system: Mandrake linux 10.0 (Community)
PHP version: 5.0.0
PHP Bug Type: Scripting Engine problem
Bug description: call_user_func_array doesn't handle correctly Exceptions
Description:
------------
If I throw an exception in a function previously called by
call_user_func_array, It produces a warning saying:
Unable to call (the function name)
But the function was correctly called. The same situation
doesn't occur if I use call_user_func instead.
Reproduce code:
---------------
<?php
function test($test) {
throw new Exception("This is a " . $test);
}
call_user_func_array("test", array("test"));
Expected result:
----------------
--
Edit bug report at http://bugs.php.net/?id=29617&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29617&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29617&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29617&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29617&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29617&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29617&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29617&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29617&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29617&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29617&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29617&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29617&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29617&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29617&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29617&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29617&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29617&r=float