cvs: ZendEngine2(PHP_5_2) / zend_object_handlers.c /tests bug41961.phpt php-src NEWS

From: Date: Thu, 12 Jul 2007 10:32:10 +0000
Subject: cvs: ZendEngine2(PHP_5_2) / zend_object_handlers.c /tests bug41961.phpt php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5897@lists.php.net to get a copy of this message
dmitry Thu Jul 12 10:32:10 2007 UTC Added files: (Branch: PHP_5_2) /ZendEngine2/tests bug41961.phpt Modified files: /php-src NEWS /ZendEngine2 zend_object_handlers.c Log: Fixed bug #41961 (Ensure search for hidden private methods does not stray from class hierarchy). (robin_fernandes at uk dot ibm dot com) http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.829&r2=1.2027.2.547.2.830&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.829 php-src/NEWS:1.2027.2.547.2.830 --- php-src/NEWS:1.2027.2.547.2.829 Wed Jul 11 22:06:54 2007 +++ php-src/NEWS Thu Jul 12 10:32:09 2007 @@ -58,6 +58,8 @@ - Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory already exists). (Pierre) +- Fixed bug #41961 (Ensure search for hidden private methods does not stray + from class hierarchy). (robin_fernandes at uk dot ibm dot com) - Fixed bug #41947 (SimpleXML incorrectly registers empty strings as namespaces). (Rob) - Fixed bug #41919 (crash in string to array conversion). http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_object_handlers.c?r1=1.135.2.6.2.20&r2=1.135.2.6.2.21&diff_format=u Index: ZendEngine2/zend_object_handlers.c diff -u ZendEngine2/zend_object_handlers.c:1.135.2.6.2.20 ZendEngine2/zend_object_handlers.c:1.135.2.6.2.21 --- ZendEngine2/zend_object_handlers.c:1.135.2.6.2.20 Fri Mar 23 17:16:55 2007 +++ ZendEngine2/zend_object_handlers.c Thu Jul 12 10:32:09 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_object_handlers.c,v 1.135.2.6.2.20 2007/03/23 17:16:55 stas Exp $ */ +/* $Id: zend_object_handlers.c,v 1.135.2.6.2.21 2007/07/12 10:32:09 dmitry Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -800,7 +800,9 @@ /* Ensure that we haven't overridden a private function and end up calling * the overriding public function... */ - if (EG(scope) && fbc->op_array.fn_flags & ZEND_ACC_CHANGED) { + if (EG(scope) && + is_derived_class(fbc->common.scope, EG(scope)) && + fbc->op_array.fn_flags & ZEND_ACC_CHANGED) { zend_function *priv_fbc; if (zend_hash_find(&EG(scope)->function_table, lc_method_name, method_len+1, (void **) &priv_fbc)==SUCCESS http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug41961.phpt?view=markup&rev=1.1 Index: ZendEngine2/tests/bug41961.phpt +++ ZendEngine2/tests/bug41961.phpt

« previous php.zend-engine.cvs (#5897) next »