summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-07-21 23:30:32 +0800
committerXinchen Hui <laruence@php.net>2012-07-21 23:30:32 +0800
commit777b6679a41abe40c4211c2f2a906a5218680872 (patch)
tree3ecaf9700dd83e51b93dfcd4a072e1b46909ac0c
parentead076bac613bc69d83ab65be2efb68feada912c (diff)
downloadphp-git-777b6679a41abe40c4211c2f2a906a5218680872.tar.gz
missed the test script
-rw-r--r--ext/spl/tests/bug62616.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/spl/tests/bug62616.phpt b/ext/spl/tests/bug62616.phpt
new file mode 100644
index 0000000000..4e4be94491
--- /dev/null
+++ b/ext/spl/tests/bug62616.phpt
@@ -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)