From: Dmitry Stogov Date: Fri, 16 Sep 2005 13:42:31 +0000 (+0000) Subject: MFH (overriding of protected static property) X-Git-Tag: RELEASE_0_9_0~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c76f253e8b7570d6d94f7234135c31de8d57246;p=php MFH (overriding of protected static property) --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index fa25254a98..1a8c66fb71 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2146,7 +2146,7 @@ static zend_bool do_inherit_property_access_check(HashTable *target_ht, zend_pro } if (zend_u_hash_find(ht, utype, prot_name, prot_name_length+1, (void**)&prop) == SUCCESS) { zval **new_prop; - if (zend_u_hash_find(ht, utype, child_info->name, child_info->name_length+1, (void**)&new_prop) == SUCCESS) { + if (zend_u_hash_find(&ce->default_static_members, utype, child_info->name, child_info->name_length+1, (void**)&new_prop) == SUCCESS) { if (Z_TYPE_PP(new_prop) != IS_NULL && Z_TYPE_PP(prop) != IS_NULL) { char *prop_name, *tmp;