From 40326f6adf7110bd6676bf7445cff7483cf173fb Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Tue, 18 Mar 2003 16:30:23 +0000 Subject: - Fix situation where a derived class declares a public (or implicit public) with the same name as a private in the parent - Optimize 'static binding' of private properties a bit --- Zend/zend_compile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Zend/zend_compile.c') diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 749d8f4935..a86a565ed0 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1682,6 +1682,9 @@ static zend_bool do_inherit_property_access_check(HashTable *target_ht, zend_pro zend_class_entry *parent_ce = ce->parent; if (parent_info->flags & ZEND_ACC_PRIVATE) { + if (zend_hash_quick_find(&ce->properties_info, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void **) &child_info)==SUCCESS) { + child_info->flags |= ZEND_ACC_CHANGED; + } return 0; /* don't copy access information to child */ } -- cgit v1.2.1