diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2016-05-20 13:38:56 +0200 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2016-05-20 13:38:56 +0200 |
commit | 252870d4a85f942107e7b51f9bdf5fae4e88f728 (patch) | |
tree | 0b4d9108c0f75bcbe6a9a8a5ba51bb73eeb6a28a /zend/opcodes.h | |
parent | 8308b984cc61cb2464b9192961abaae4fe750591 (diff) |
Fix exception catching and properly handle casting functions returning something other than a Php::Value
Diffstat (limited to 'zend/opcodes.h')
-rw-r--r-- | zend/opcodes.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zend/opcodes.h b/zend/opcodes.h index 1901f1f..0a79b97 100644 --- a/zend/opcodes.h +++ b/zend/opcodes.h @@ -93,8 +93,7 @@ public: // was an exception thrown inside the eval()'ed code? In that case we // throw a C++ new exception to give the C++ code the chance to catch it - // todo: OrigException with constructor for zend_object - // if (oldException != EG(exception) && EG(exception)) throw OrigException(EG(exception) TSRMLS_CC); + if (oldException != EG(exception) && EG(exception)) throw OrigException(EG(exception) TSRMLS_CC); // we're ready if there is no return value if (ZVAL_IS_NULL(&retval)) return nullptr; |