]> granicus.if.org Git - php/commitdiff
Add NEWS entry and a test for Bug#71412
authorSara Golemon <pollita@php.net>
Sun, 2 Jul 2017 14:21:58 +0000 (10:21 -0400)
committerSara Golemon <pollita@php.net>
Sun, 2 Jul 2017 14:41:38 +0000 (10:41 -0400)
NEWS
ext/spl/tests/bug71412.phpt [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index d8bb63d2b18f89fddf1aff6fd8932540bc6f2a99..7f461a8752534748e47cbd2b5df85a5466222df3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,8 @@ PHP                                                                        NEWS
 
 - SPL:
   . Fixed bug #73471 (PHP freezes with AppendIterator). (jhdxr)
+  . Fixed bug #71412 (Incorrect arginfo for ArrayIterator::__construct).
+    (tysonandre775 at hotmail dot com)
 
 - Session:
   . Fixed bug #74514 (5 session functions incorrectly warn when calling in
diff --git a/ext/spl/tests/bug71412.phpt b/ext/spl/tests/bug71412.phpt
new file mode 100644 (file)
index 0000000..3378604
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+Bug#71412 ArrayIterator reflection parameter info
+--SKIPIF--
+<?php
+extension_loaded('SPL') || print "skip";
+--FILE--
+<?php
+echo (new ReflectionMethod('ArrayIterator', '__construct'));
+--EXPECT--
+Method [ <internal:SPL, ctor> public method __construct ] {
+
+  - Parameters [2] {
+    Parameter #0 [ <optional> $array ]
+    Parameter #1 [ <optional> $ar_flags ]
+  }
+}