cvs: ZendEngine2(PHP_5_1) / zend_compile.c
| From: | Dmitry Stogov | Date: | Tue, 02 May 2006 15:49:26 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_1) / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4830@lists.php.net to get a copy of this message | ||
dmitry Tue May 2 15:49:26 2006 UTC
Modified files: (Branch: PHP_5_1)
/ZendEngine2 zend_compile.c
Log:
Fixed possible crash in highlight_string() (proper place)
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_compile.c?r1=1.647.2.26&r2=1.647.2.27&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.647.2.26 ZendEngine2/zend_compile.c:1.647.2.27
--- ZendEngine2/zend_compile.c:1.647.2.26 Tue May 2 07:19:00 2006
+++ ZendEngine2/zend_compile.c Tue May 2 15:49:26 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.647.2.26 2006/05/02 07:19:00 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.647.2.27 2006/05/02 15:49:26 dmitry Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -131,7 +131,6 @@
zend_stack_init(&CG(foreach_copy_stack));
zend_stack_init(&CG(object_stack));
zend_stack_init(&CG(declare_stack));
- CG(active_op_array) = NULL;
CG(active_class_entry) = NULL;
zend_llist_init(&CG(list_llist), sizeof(list_llist_element), NULL, 0);
zend_llist_init(&CG(dimension_llist), sizeof(int), NULL, 0);
@@ -155,6 +154,7 @@
void init_compiler(TSRMLS_D)
{
+ CG(active_op_array) = NULL;
zend_init_compiler_data_structures(TSRMLS_C);
zend_init_rsrc_list(TSRMLS_C);
zend_hash_init(&CG(filenames_table), 5, NULL, (dtor_func_t) free_estring, 0);