On Sat, 09 Apr 2011 17:03:16 +0100, Herman Radtke <hermanrad...@gmail.com>
wrote:
An extension is using zend_call_function to call a userland function.
If the userland function throws an exception, zend_call_function will
still return SUCCESS. Why isn't zend_call_function returning FAILURE
on an exception? Is there a way to check if an exception was thrown
after zend_call_function returns a SUCCESS?
Because what "success" means in this context is that the function could be
executed. If you see the implementation of zend_call_function, you'll
notice the conditions that return FAILURE are those where the execution of
the target function doesn't even begin.
You can check for exceptions via EG(exception).
--
Gustavo Lopes
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php