cvs: ZendEngine2 / zend_compile.c

From: Date: Sun, 24 Aug 2003 16:17:45 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1693@lists.php.net to get a copy of this message
zeev Sun Aug 24 12:17:45 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: Use pemalloc() Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.465 ZendEngine2/zend_compile.c:1.466 --- ZendEngine2/zend_compile.c:1.465 Sun Aug 24 12:01:57 2003 +++ ZendEngine2/zend_compile.c Sun Aug 24 12:17:45 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.465 2003/08/24 16:01:57 zeev Exp $ */ +/* $Id: zend_compile.c,v 1.466 2003/08/24 16:17:45 zeev Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -2314,7 +2314,7 @@ int prop_name_length; prop_name_length = 1 + src1_length + 1 + src2_length; - prop_name = internal ? malloc(prop_name_length + 1) : emalloc(prop_name_length + 1); + prop_name = pemalloc(prop_name_length + 1, internal); prop_name[0] = '\0'; memcpy(prop_name + 1, src1, src1_length+1); memcpy(prop_name + 1 + src1_length + 1, src2, src2_length+1);

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