cvs: ZendEngine2 / zend_execute_API.c

From: Date: Wed, 18 May 2005 18:02:51 +0000
Subject: cvs: ZendEngine2 / zend_execute_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3666@lists.php.net to get a copy of this message
stas Wed May 18 14:02:51 2005 EDT Modified files: /ZendEngine2 zend_execute_API.c Log: fix #29890 - crash when function call fails http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.317&r2=1.318&ty=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.317 ZendEngine2/zend_execute_API.c:1.318 --- ZendEngine2/zend_execute_API.c:1.317 Mon May 2 11:57:35 2005 +++ ZendEngine2/zend_execute_API.c Wed May 18 14:02:50 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute_API.c,v 1.317 2005/05/02 15:57:35 helly Exp $ */ +/* $Id: zend_execute_API.c,v 1.318 2005/05/18 18:02:50 stas Exp $ */ #include <stdio.h> #include <signal.h> @@ -756,6 +756,11 @@ 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);

« previous php.zend-engine.cvs (#3666) next »