diff options
author | Andi Gutmans <andi@php.net> | 2001-11-25 08:49:09 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-11-25 08:49:09 +0000 |
commit | d2da63f629632c8d7940566a71be66c952b17583 (patch) | |
tree | 3fa3f90f76000024b585e278098192f99bbe0421 /Zend/zend_opcode.c | |
parent | 3d741d71c6678ec68e82557d79ebefb6564d0ffd (diff) | |
download | php-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.c | 2 |
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; } |