diff options
author | David Soria Parra <dsp@php.net> | 2011-11-12 17:05:08 +0000 |
---|---|---|
committer | David Soria Parra <dsp@php.net> | 2011-11-12 17:05:08 +0000 |
commit | c4d5231a3607b6ee69a4f20c66bd3f9773bcab39 (patch) | |
tree | bfdfa57f886b57fd87396e20cab866791a468748 | |
parent | a9482367f8e798d43f73aaaf13acf9fe5235ae53 (diff) | |
download | php-git-c4d5231a3607b6ee69a4f20c66bd3f9773bcab39.tar.gz |
Fix #60218 (instantiating unknown class leads to memory leak in cli)
-rw-r--r-- | Zend/zend_execute_API.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 888058de98..8afff94abb 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1195,7 +1195,9 @@ ZEND_API int zend_eval_stringl(char *str, int str_len, zval *retval_ptr, char *s } CG(interactive) = 0; - zend_execute(new_op_array TSRMLS_CC); + zend_try { + zend_execute(new_op_array TSRMLS_CC); + } zend_end_try(); CG(interactive) = orig_interactive; if (local_retval_ptr) { |