From 777b6679a41abe40c4211c2f2a906a5218680872 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 21 Jul 2012 23:30:32 +0800 Subject: [PATCH] missed the test script --- ext/spl/tests/bug62616.phpt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ext/spl/tests/bug62616.phpt diff --git a/ext/spl/tests/bug62616.phpt b/ext/spl/tests/bug62616.phpt new file mode 100644 index 00000000000..4e4be94491e --- /dev/null +++ b/ext/spl/tests/bug62616.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault) +--FILE-- +count()); + +$ii = new IteratorIterator($ai); + +var_dump($ii->count()); +?> +--EXPECTF-- +int(2) +int(2)