From: Dmitry Stogov Date: Fri, 16 Sep 2005 13:42:49 +0000 (+0000) Subject: MFH (overriding of protected static property) X-Git-Tag: php-5.1.0RC2~243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cf678c306f7c8960ac1531dbeef9a8d4ad0e063;p=php MFH (overriding of protected static property) --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 1cfcef5087..45e486fc04 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2062,7 +2062,7 @@ static zend_bool do_inherit_property_access_check(HashTable *target_ht, zend_pro } if (zend_hash_find(ht, prot_name, prot_name_length+1, (void**)&prop) == SUCCESS) { zval **new_prop; - if (zend_hash_find(ht, child_info->name, child_info->name_length+1, (void**)&new_prop) == SUCCESS) { + if (zend_hash_find(&ce->default_static_members, 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; zend_unmangle_property_name(child_info->name, &tmp, &prop_name);