summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2002-07-15 18:09:56 +0000
committerAndi Gutmans <andi@php.net>2002-07-15 18:09:56 +0000
commitbc5ea87e281aed931e64c55822c91cc29565c3f9 (patch)
treec38a7c1b50ca36316d552a385fe1889fe087d84d /Zend/zend.c
parent50ca75a0f614961fa1b5effc220c116a0bbda616 (diff)
downloadphp-git-bc5ea87e281aed931e64c55822c91cc29565c3f9.tar.gz
- Commit patch to support protected member variables (by Timm Friebe w/
- some fixes by me). - You can't access protected variables from outside the object. If you want - to see a protected member from your ancestors you need to declare the - member as protected in the class you want to use it in. You can't - redeclare a protected variable as private nor the other way around.
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index fdc7019025..a3d8d07069 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -254,6 +254,7 @@ static void register_standard_class(void)
zend_standard_class_def->parent = NULL;
zend_hash_init_ex(&zend_standard_class_def->default_properties, 0, NULL, ZVAL_PTR_DTOR, 1, 0);
zend_hash_init_ex(&zend_standard_class_def->private_properties, 0, NULL, ZVAL_PTR_DTOR, 1, 0);
+ zend_hash_init_ex(&zend_standard_class_def->protected_properties, 0, NULL, ZVAL_PTR_DTOR, 1, 0);
zend_standard_class_def->static_members = (HashTable *) malloc(sizeof(HashTable));
zend_hash_init_ex(zend_standard_class_def->static_members, 0, NULL, ZVAL_PTR_DTOR, 1, 0);
zend_hash_init_ex(&zend_standard_class_def->constants_table, 0, NULL, ZVAL_PTR_DTOR, 1, 0);