note 44332 added to function.call-user-func-array

From: Date: Wed, 21 Jul 2004 08:19:42 +0000
Subject: note 44332 added to function.call-user-func-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-73789@lists.php.net to get a copy of this message
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; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.call-user-func-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44332 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44332&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44332&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73789) next »