From b01b971ec0eb5628d82b80b27365db383b375dba Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 15 Aug 2014 11:46:04 +0400 Subject: [PATCH] Parameters with duplicate names are not allowed anymore in PHP7. --- Zend/tests/bug54013.phpt | 11 ++--------- Zend/tests/bug64515.phpt | 6 +++--- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Zend/tests/bug54013.phpt b/Zend/tests/bug54013.phpt index 4219eed51e..d3069678b4 100644 --- a/Zend/tests/bug54013.phpt +++ b/Zend/tests/bug54013.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #54013 (ReflectionParam for duplicate parameter contains garbage) +Bug #54013 (ReflectionParam for duplicate parameter contains garbage) (PHP7) --FILE-- --EXPECTF-- -object(ReflectionParameter)#%d (1) { - ["name"]=> - string(8) "aaaaaaaa" -} -object(ReflectionParameter)#%d (1) { - ["name"]=> - string(8) "aaaaaaaa" -} +Fatal error: Redefinition of parameter aaaaaaaa in %sbug54013.php on line 5 diff --git a/Zend/tests/bug64515.phpt b/Zend/tests/bug64515.phpt index 5390a6cdcd..6330ec8096 100644 --- a/Zend/tests/bug64515.phpt +++ b/Zend/tests/bug64515.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #64515 (Memoryleak when using the same variablename 2times in function declaration) +Bug #64515 (Memoryleak when using the same variablename 2times in function declaration) (PHP7) --FILE-- ---EXPECT-- -okey +--EXPECTF-- +Fatal error: Redefinition of parameter unused in %sbug64515.php on line 2 -- 2.50.1