We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb0270d commit 193c1c1Copy full SHA for 193c1c1
v8js_exceptions.cc
@@ -92,6 +92,7 @@ void v8js_create_script_exception(zval *return_value, v8::Isolate *isolate, v8::
92
93
zend_class_entry *exception_ce = zend_exception_get_default(TSRMLS_C);
94
if (Z_TYPE_P(php_exception) == IS_OBJECT && instanceof_function(Z_OBJCE_P(php_exception), exception_ce TSRMLS_CC)) {
95
+ Z_ADDREF_P(php_exception);
96
zend_exception_set_previous(return_value, php_exception TSRMLS_CC);
97
}
98
0 commit comments