Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Reinstated correct return values after David's fix for #60218.

  • Loading branch information...
commit 2c1285a5738f4cf00b67ee8c2731efb2de5ba48a 1 parent 32edc70
Derick Rethans authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Zend/zend_execute_API.c
View
4 Zend/zend_execute_API.c
@@ -1195,8 +1195,11 @@ ZEND_API int zend_eval_stringl(char *str, int str_len, zval *retval_ptr, char *s
}
CG(interactive) = 0;
+ retval = SUCCESS;
zend_try {
zend_execute(new_op_array TSRMLS_CC);
+ } zend_catch {
+ retval = FAILURE;
} zend_end_try();
CG(interactive) = orig_interactive;
@@ -1218,7 +1221,6 @@ ZEND_API int zend_eval_stringl(char *str, int str_len, zval *retval_ptr, char *s
destroy_op_array(new_op_array TSRMLS_CC);
efree(new_op_array);
EG(return_value_ptr_ptr) = original_return_value_ptr_ptr;
- retval = SUCCESS;
} else {
retval = FAILURE;
}
Please sign in to comment.
Something went wrong with that request. Please try again.