cvs: ZendEngine2(PHP_5_2) / zend_constants.c

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1203422436@cvsserver>
dmitry		Tue Feb 19 12:00:36 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /ZendEngine2	zend_constants.c 
  Log:
  Fixed memory leak
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_constants.c?r1=1.71.2.5.2.8&r2=1.71.2.5.2.9&diff_format=u
Index: ZendEngine2/zend_constants.c
diff -u ZendEngine2/zend_constants.c:1.71.2.5.2.8 ZendEngine2/zend_constants.c:1.71.2.5.2.9
--- ZendEngine2/zend_constants.c:1.71.2.5.2.8	Mon Dec 31 07:20:02 2007
+++ ZendEngine2/zend_constants.c	Tue Feb 19 12:00:36 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_constants.c,v 1.71.2.5.2.8 2007/12/31 07:20:02 sebastian Exp $ */
+/* $Id: zend_constants.c,v 1.71.2.5.2.9 2008/02/19 12:00:36 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_constants.h"
@@ -274,6 +274,7 @@
 			zval_update_constant_ex(ret_constant, (void*)1, *ce TSRMLS_CC);
 			*result = **ret_constant;
 			zval_copy_ctor(result);
+			INIT_PZVAL(result);
 		}
 
 		return retval;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.