]> granicus.if.org Git - php/commitdiff
missed the test script
authorXinchen Hui <laruence@php.net>
Sat, 21 Jul 2012 15:30:32 +0000 (23:30 +0800)
committerXinchen Hui <laruence@php.net>
Sat, 21 Jul 2012 15:30:32 +0000 (23:30 +0800)
ext/spl/tests/bug62616.phpt [new file with mode: 0644]

diff --git a/ext/spl/tests/bug62616.phpt b/ext/spl/tests/bug62616.phpt
new file mode 100644 (file)
index 0000000..4e4be94
--- /dev/null
@@ -0,0 +1,15 @@
+--TEST--
+Bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault)
+--FILE--
+<?php
+$ai = new ArrayIterator(array(0,1));
+
+var_dump($ai->count());
+
+$ii = new IteratorIterator($ai);
+
+var_dump($ii->count());
+?>
+--EXPECTF--
+int(2)
+int(2)