cvs: ZendEngine2 / zend_compile.c

From: Date: Wed, 12 Mar 2003 09:38:19 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1040@lists.php.net to get a copy of this message
zeev Wed Mar 12 04:38:19 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fix a crash bug in the implicit public declaration Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.394 ZendEngine2/zend_compile.c:1.395 --- ZendEngine2/zend_compile.c:1.394 Mon Mar 10 02:20:43 2003 +++ ZendEngine2/zend_compile.c Wed Mar 12 04:38:19 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.394 2003/03/10 07:20:43 zeev Exp $ */ +/* $Id: zend_compile.c,v 1.395 2003/03/12 09:38:19 zeev Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -2358,6 +2358,7 @@ } *result = opline_ptr->result; if (CG(active_class_entry) + && property->op_type == IS_CONST && !zend_hash_exists(&CG(active_class_entry)->properties_info, property->u.constant.value.str.val, property->u.constant.value.str.len+1)) { property->u.constant.value.str.val = estrndup(property->u.constant.value.str.val, property->u.constant.value.str.len); zend_do_declare_property(property, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_IMPLICIT_PUBLIC TSRMLS_CC);

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