summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-11-25 08:49:09 +0000
committerAndi Gutmans <andi@php.net>2001-11-25 08:49:09 +0000
commitd2da63f629632c8d7940566a71be66c952b17583 (patch)
tree3fa3f90f76000024b585e278098192f99bbe0421 /Zend/zend_opcode.c
parent3d741d71c6678ec68e82557d79ebefb6564d0ffd (diff)
downloadphp-git-d2da63f629632c8d7940566a71be66c952b17583.tar.gz
- Support static members. The following script works:
<? class foo { class bar { function init_values() { for ($i=1; $i<10; $i++) { foo::bar::$hello[$i] = $i*$i; } } function print_values() { for ($i=1; $i<10; $i++) { print foo::bar::$hello[$i] . "\n"; } } } } foo::bar::init_values(); foo::bar::print_values(); for ($i=1; $i<10; $i++) { print $hello[$i]?"Shouldn't be printed\n":""; } ?>
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index 273a4b3762..6d16b719b3 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -117,6 +117,7 @@ ZEND_API void destroy_zend_class(zend_class_entry *ce)
efree(ce->refcount);
zend_hash_destroy(&ce->function_table);
zend_hash_destroy(&ce->default_properties);
+ zend_hash_destroy(&ce->static_members);
zend_hash_destroy(&ce->class_table);
break;
case ZEND_INTERNAL_CLASS:
@@ -124,6 +125,7 @@ ZEND_API void destroy_zend_class(zend_class_entry *ce)
free(ce->refcount);
zend_hash_destroy(&ce->function_table);
zend_hash_destroy(&ce->default_properties);
+ zend_hash_destroy(&ce->static_members);
zend_hash_destroy(&ce->class_table);
break;
}