summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-04-28 20:12:42 +0300
committerAnatol Belski <ab@php.net>2016-04-28 19:24:32 +0200
commit9e4de0cbdcb85b8835c12a62a54e1d5ab8f7927e (patch)
tree430d0142efc09d9f33715a5ee53f3d200dc41622
parentee2c9065d8c6dfbefb32273d409b583fcbf1977d (diff)
downloadphp-git-9e4de0cbdcb85b8835c12a62a54e1d5ab8f7927e.tar.gz
Added test
-rw-r--r--Zend/tests/bug72119.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug72119.phpt b/Zend/tests/bug72119.phpt
new file mode 100644
index 0000000000..b8f070a25a
--- /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