#28934 [Com]: call_user_func_array() and Exceptions

From: Date: Sun, 01 Aug 2004 21:18:32 +0000
Subject: #28934 [Com]: call_user_func_array() and Exceptions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63883@lists.php.net to get a copy of this message
ID: 28934 Comment by: JustinHagstrom at yahoo dot com Reported By: richard@php.net 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] richard@php.net 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

« previous php.bugs (#63883) next »