From e858d27888471107a4816d62033db785fab5f2da Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Fri, 30 Nov 2001 16:29:47 +0000 Subject: - 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: --- Zend/zend_opcode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Zend/zend_opcode.c') 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; } -- cgit v1.2.1