com php-src: Parameters with duplicate names are not allowed anymore in PHP7.: Zend/tests/bug54013.phpt Zend/tests/bug64515.phpt
| From: | Dmitry Stogov | Date: | Fri, 15 Aug 2014 07:46:04 +0000 |
| Subject: | com php-src: Parameters with duplicate names are not allowed anymore in PHP7.: Zend/tests/bug54013.phpt Zend/tests/bug64515.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80213@lists.php.net to get a copy of this message | ||
Commit: b01b971ec0eb5628d82b80b27365db383b375dba
Author: Dmitry Stogov <dmitry@zend.com> Fri, 15 Aug 2014 11:46:04 +0400
Parents: 3bd32efb3e2baaaac5b339ca51d9046aade1734f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b01b971ec0eb5628d82b80b27365db383b375dba
Log:
Parameters with duplicate names are not allowed anymore in PHP7.
Changed paths:
M Zend/tests/bug54013.phpt
M Zend/tests/bug64515.phpt
Diff:
diff --git a/Zend/tests/bug54013.phpt b/Zend/tests/bug54013.phpt
index 4219eed..d306967 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--
<?php
@@ -21,11 +21,4 @@ var_dump($params[0], $params[1]);
?>
--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 5390a6c..6330ec8 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--
<?php
function foo($unused = null, $unused = null, $arg = array()) {
@@ -8,5 +8,5 @@ function foo($unused = null, $unused = null, $arg = array()) {
foo();
echo "okey";
?>
---EXPECT--
-okey
+--EXPECTF--
+Fatal error: Redefinition of parameter unused in %sbug64515.php on line 2