cvs: ZendEngine2 / zend_execute.c

From: Date: Thu, 22 Dec 2005 09:31:41 +0000
Subject: cvs: ZendEngine2 / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4477@lists.php.net to get a copy of this message
dmitry Thu Dec 22 09:31:41 2005 EDT Modified files: /ZendEngine2 zend_execute.c Log: Fixed memory leak and typo http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_execute.c?r1=1.726&r2=1.727&diff_format=u Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.726 ZendEngine2/zend_execute.c:1.727 --- ZendEngine2/zend_execute.c:1.726 Thu Nov 17 08:27:22 2005 +++ ZendEngine2/zend_execute.c Thu Dec 22 09:31:40 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.726 2005/11/17 08:27:22 dmitry Exp $ */ +/* $Id: zend_execute.c,v 1.727 2005/12/22 09:31:40 dmitry Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -458,12 +458,13 @@ /* this should modify object only if it's empty */ if ((*object_ptr)->type == IS_NULL || ((*object_ptr)->type == IS_BOOL && (*object_ptr)->value.lval==0) - || (((*object_ptr)->type == IS_STRING && (*object_ptr)->type == IS_BINARY) && (*object_ptr)->value.str.len == 0) + || (((*object_ptr)->type == IS_STRING || (*object_ptr)->type == IS_BINARY) && (*object_ptr)->value.str.len == 0) || ((*object_ptr)->type == IS_UNICODE && (*object_ptr)->value.ustr.len == 0)) { if (!PZVAL_IS_REF(*object_ptr)) { SEPARATE_ZVAL(object_ptr); } zend_error(E_STRICT, "Creating default object from empty value"); + zval_dtor(*object_ptr); object_init(*object_ptr); } }

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