com php-src: Added test: Zend/tests/bug72119.phpt
| From: | Dmitry Stogov | Date: | Thu, 28 Apr 2016 17:12:42 +0000 |
| Subject: | com php-src: Added test: Zend/tests/bug72119.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91922@lists.php.net to get a copy of this message | ||
Commit: d851e8389cf54de396cf7314a77724d45a8a9ff4
Author: Dmitry Stogov <dmitry@zend.com> Thu, 28 Apr 2016 20:12:42 +0300
Parents: 9e45ac53ce64461e56f82f5847526a675c769f88
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d851e8389cf54de396cf7314a77724d45a8a9ff4
Log:
Added test
Changed paths:
A Zend/tests/bug72119.phpt
Diff:
diff --git a/Zend/tests/bug72119.phpt b/Zend/tests/bug72119.phpt
new file mode 100644
index 0000000..b8f070a
--- /dev/null
+++ b/Zend/tests/bug72119.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #72119 (Interface declaration compatibility regression with default values)
+--FILE--
+<?php
+interface Foo {
+ public function bar(array $baz = null);
+}
+
+class Hello implements Foo {
+ public function bar(array $baz = [])
+ {
+
+ }
+}
+echo "OK\n";
+?>
+--EXPECT--
+OK