diff options
author | Stanislav Malyshev <stas@php.net> | 2005-05-18 18:01:13 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2005-05-18 18:01:13 +0000 |
commit | cc65afef4de2c1a84beabc66a46287899d1aba09 (patch) | |
tree | ea332cf6347f1cbf094b54f8ebfb66101a1e35d2 /Zend/zend_execute_API.c | |
parent | 9d36b04b69bb3fa319adc4405b16184168ca7624 (diff) | |
download | php-git-cc65afef4de2c1a84beabc66a46287899d1aba09.tar.gz |
fix #29890 - crash when function call fails
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 01963e5fe6..1556957627 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -761,6 +761,11 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS zval *new_zval; if (fci->no_separation) { + if(i) { + /* hack to clean up the stack */ + zend_ptr_stack_n_push(&EG(argument_stack), 2, (void *) (long) i, NULL); + zend_ptr_stack_clear_multiple(TSRMLS_C); + } return FAILURE; } ALLOC_ZVAL(new_zval); |