summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-11-21 18:11:10 +0000
committerZeev Suraski <zeev@php.net>1999-11-21 18:11:10 +0000
commit6358c6631b278ffbb733a5d1eabd6f4101712509 (patch)
treee01ccb7c1762ab482241e32b290974b6b417afa2 /Zend/zend_compile.c
parent5cc10ecec231640ea903992c9c84aa110441a211 (diff)
downloadphp-git-6358c6631b278ffbb733a5d1eabd6f4101712509.tar.gz
- Optimize class instanciation
- Fix constant instanciation for array elements inside objects
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index c5483d19ee..f33593619e 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1384,6 +1384,7 @@ void do_begin_class_declaration(znode *class_name, znode *parent_class_name CLS_
CG(class_entry).name_length = class_name->u.constant.value.str.len;
CG(class_entry).refcount = (int *) emalloc(sizeof(int));
*CG(class_entry).refcount = 1;
+ CG(class_entry).constants_updated = 0;
zend_str_tolower(CG(class_entry).name, CG(class_entry).name_length);