com php-src: Fixed BC break described by bug #72119. It was introduced after 7.0.5 release by attempt to fix bug #71428.: Zend/tests/bug71428.1.phpt
Zend/tests/bug71428.3.phpt Zend/zend_inheritance.c

From: Date: Thu, 28 Apr 2016 17:21:14 +0000
Subject: com php-src: Fixed BC break described by bug #72119. It was introduced after 7.0.5 release by attempt to fix bug #71428.: Zend/tests/bug71428.1.phpt
Zend/tests/bug71428.3.phpt Zend/zend_inheritance.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91929@lists.php.net to get a copy of this message
Commit: 75fa8842f4b64f60db65474cb5d3ca9f40875725 Author: Dmitry Stogov <dmitry@zend.com> Thu, 28 Apr 2016 19:56:10 +0300 Committer: Anatol Belski <ab@php.net> Thu, 28 Apr 2016 19:21:14 +0200 Parents: 3b8d4de300854b3517c7acb239b84f7726c1353c Branches: PHP-7.0.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=75fa8842f4b64f60db65474cb5d3ca9f40875725 Log: Fixed BC break described by bug #72119. It was introduced after 7.0.5 release by attempt to fix bug #71428. Bugs: https://bugs.php.net/72119 https://bugs.php.net/71428 Changed paths: M Zend/tests/bug71428.1.phpt M Zend/tests/bug71428..3.phpt M Zend/zend_inheritance.c Diff: diff --git a/Zend/tests/bug71428.1.phpt b/Zend/tests/bug71428.1.phpt index b754687..fbf3423 100644 --- a/Zend/tests/bug71428.1.phpt +++ b/Zend/tests/bug71428.1.phpt @@ -1,5 +1,7 @@ --TEST-- bug #71428.1: inheritance with null default values +--XFAIL-- +This is a BC break --FILE-- <?php class A { diff --git a/Zend/tests/bug71428.3.phpt b/Zend/tests/bug71428.3.phpt index 2f400e5..65d3970 100644 --- a/Zend/tests/bug71428.3.phpt +++ b/Zend/tests/bug71428.3.phpt @@ -1,5 +1,7 @@ --TEST-- bug #71428: Validation type inheritance with = NULL +--XFAIL-- +This is a BC break --FILE-- <?php class A { } diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index 9042b2f..b46ed4e 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -319,10 +319,13 @@ static zend_bool zend_do_perform_implementation_check(const zend_function *fe, c return 0; } +#if 0 + // This introduces BC break described at https://bugs.php.net/bug.php?id=72119 if (proto_arg_info->type_hint && proto_arg_info->allow_null && !fe_arg_info->allow_null) { /* incompatible nullability */ return 0; } +#endif /* by-ref constraints on arguments are invariant */ if (fe_arg_info->pass_by_reference != proto_arg_info->pass_by_reference) {

« previous php.cvs (#91929) next »