diff options
author | Andi Gutmans <andi@php.net> | 2001-11-30 16:29:47 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-11-30 16:29:47 +0000 |
commit | e858d27888471107a4816d62033db785fab5f2da (patch) | |
tree | 72af463fe00499ac25ec0d6140cb7efff4ae32c0 /Zend/zend_API.c | |
parent | 7f66d5e99aa51dd90df5f62b452653aaae53c21c (diff) | |
download | php-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_API.c')
-rw-r--r-- | Zend/zend_API.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 670e2e3c1f..e013d16a57 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1217,6 +1217,7 @@ ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_ class_entry->constants_updated = 0; zend_hash_init(&class_entry->default_properties, 0, NULL, ZVAL_PTR_DTOR, 1); zend_hash_init(&class_entry->static_members, 0, NULL, ZVAL_PTR_DTOR, 1); + zend_hash_init(&class_entry->constants, 0, NULL, ZVAL_PTR_DTOR, 1); zend_hash_init(&class_entry->function_table, 0, NULL, ZEND_FUNCTION_DTOR, 1); zend_hash_init(&class_entry->class_table, 10, NULL, ZEND_CLASS_DTOR, 1); |