From: Stanislav Malyshev Date: Wed, 18 May 2005 18:02:50 +0000 (+0000) Subject: fix #29890 - crash when function call fails X-Git-Tag: php-5.0.1b1~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba7123fc9b0b8b4002b882a7846b785814612b58;p=php fix #29890 - crash when function call fails --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index d19aa8df77..9852180151 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -756,6 +756,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);