com php-src: don't check private property types during inheritance: Zend/zend_inheritance.c

From: Date: Mon, 07 Mar 2016 13:56:55 +0000
Subject: com php-src: don't check private property types during inheritance: Zend/zend_inheritance.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95620@lists.php.net to get a copy of this message
Commit: b557f8ba8e6cd30131e68a2cbbcce9a8cd959448 Author: Joe Watkins <krakjoe@php.net> Mon, 7 Mar 2016 13:56:55 +0000 Parents: 49ea1df4c4e0c53f4ab10aeda88ef4508db40cce Branches: typed_ref_properties Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b557f8ba8e6cd30131e68a2cbbcce9a8cd959448 Log: don't check private property types during inheritance Changed paths: M Zend/zend_inheritance..c Diff: diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index 98ead9a..0a8c339 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -648,7 +648,7 @@ static void do_inherit_property(zend_property_info *parent_info, zend_string *ke if (UNEXPECTED(child)) { child_info = Z_PTR_P(child); - if (UNEXPECTED(parent_info->type)) { + if (UNEXPECTED(parent_info->type && !(parent_info->flags & ZEND_ACC_PRIVATE))) { /* TODO(krakjoe) comparing strings feels wrong */ if (parent_info->type == IS_OBJECT) {

« previous php.cvs (#95620) next »