diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-04-28 20:12:42 +0300 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-04-28 19:24:32 +0200 |
commit | 9e4de0cbdcb85b8835c12a62a54e1d5ab8f7927e (patch) | |
tree | 430d0142efc09d9f33715a5ee53f3d200dc41622 | |
parent | ee2c9065d8c6dfbefb32273d409b583fcbf1977d (diff) | |
download | php-git-9e4de0cbdcb85b8835c12a62a54e1d5ab8f7927e.tar.gz |
Added test
-rw-r--r-- | Zend/tests/bug72119.phpt | 18 |
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 |