0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-08 22:11:52 +00:00

Restore clean unwind state after unwinding.

This commit is contained in:
Stefan Siegl 2014-09-20 18:36:21 +00:00
parent cd8542745c
commit 47b433efe8

View File

@ -1256,6 +1256,9 @@ static void php_v8js_execute_script(zval *this_ptr, php_v8js_script *res, long f
/* Check for fatal error marker possibly set by php_v8js_error_handler; just /* Check for fatal error marker possibly set by php_v8js_error_handler; just
* rethrow the error since we're now out of V8. */ * rethrow the error since we're now out of V8. */
if(V8JSG(fatal_error_abort)) { if(V8JSG(fatal_error_abort)) {
V8JSG(fatal_error_abort) = 0;
V8JSG(unwind_env) = NULL;
zend_error(V8JSG(error_num), "%s", V8JSG(error_message)); zend_error(V8JSG(error_num), "%s", V8JSG(error_message));
} }