Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute_API.c

From: Date: Tue, 15 Jan 2008 10:20:06 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute_API.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6272@lists.php.net to get a copy of this message
Hi Marcus, This patch breaks something. Two ext/soap tests crash after it inside the zend_std_call_user_call() during check for Z_ISREF_P(method_result_ptr). I assume the patch should reset the *fci->retval_ptr_ptr but not the fci->retval_ptr_ptr itself. Also, could you please commit the test case for leak you were going to fix (or send it to me). Thanks. Dmitry. Marcus Boerger wrote:
helly Mon Jan 14 18:14:00 2008 UTC
  Modified files:                  /ZendEngine2	zend_execute_API.c   Log:
- Fix memleak (found by colder) http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute_API.c?r1=1.428&r2=1.429&diff_format=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.428 ZendEngine2/zend_execute_API.c:1.429 --- ZendEngine2/zend_execute_API.c:1.428 Thu Jan 10 09:38:40 2008 +++ ZendEngine2/zend_execute_API.c Mon Jan 14 18:14:00 2008 @@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: zend_execute_API.c,v 1.428 2008/01/10 09:38:40 dmitry Exp $ */ +/* $Id: zend_execute_API.c,v 1.429 2008/01/14 18:14:00 helly Exp $ */ #include <stdio.h> #include <signal.h> @@ -1180,6 +1180,10 @@ { INIT_PZVAL(*fci->retval_ptr_ptr); }*/ + if (EG(exception) && fci->retval_ptr_ptr) { + zval_ptr_dtor(fci->retval_ptr_ptr); + fci->retval_ptr_ptr = NULL; + } } zend_ptr_stack_clear_multiple(TSRMLS_C); if (call_via_handler) {


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