summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-11-30 16:29:47 +0000
committerAndi Gutmans <andi@php.net>2001-11-30 16:29:47 +0000
commite858d27888471107a4816d62033db785fab5f2da (patch)
tree72af463fe00499ac25ec0d6140cb7efff4ae32c0 /Zend/zend_opcode.c
parent7f66d5e99aa51dd90df5f62b452653aaae53c21c (diff)
downloadphp-git-e858d27888471107a4816d62033db785fab5f2da.tar.gz
- Initial support for class constants. There are still a few semantic
- issues which need to be looked into but basically it seems to work. - Example: <?php class foo { const hey = "hello"; } print foo::hey; ?>
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 6d16b719b3..9d9b924632 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -118,6 +118,7 @@ ZEND_API void destroy_zend_class(zend_class_entry *ce)
zend_hash_destroy(&ce->function_table);
zend_hash_destroy(&ce->default_properties);
zend_hash_destroy(&ce->static_members);
+ zend_hash_destroy(&ce->constants);
zend_hash_destroy(&ce->class_table);
break;
case ZEND_INTERNAL_CLASS:
@@ -126,6 +127,7 @@ ZEND_API void destroy_zend_class(zend_class_entry *ce)
zend_hash_destroy(&ce->function_table);
zend_hash_destroy(&ce->default_properties);
zend_hash_destroy(&ce->static_members);
+ zend_hash_destroy(&ce->constants);
zend_hash_destroy(&ce->class_table);
break;
}