note 44332 rejected from function.call-user-func-array by vincent
| From: | vincent@php.net | Date: | Wed, 21 Jul 2004 08:34:54 +0000 |
| Subject: | note 44332 rejected from function.call-user-func-array by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73794@lists.php.net to get a copy of this message | ||
Note Submitter: efredin@redtempest.com
----
It appears that if an exception is thrown in a method called by call_user_func_array(), it generates
an error like the following, even if the exception is caught and handled.
Warning: call_user_func_array() [function.call-user-func-array]: Unable to call test()....
<?
function test($blah)
{
throw new Exception("BLAH sucks");
echo $blah;
}
try
{
@call_user_func_array( "test", array("testing blah") );
}
catch(Exception $e)
{
echo $e;
}
?>