diff options
author | Xinchen Hui <laruence@php.net> | 2012-07-21 23:30:32 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2012-07-21 23:30:32 +0800 |
commit | 777b6679a41abe40c4211c2f2a906a5218680872 (patch) | |
tree | 3ecaf9700dd83e51b93dfcd4a072e1b46909ac0c | |
parent | ead076bac613bc69d83ab65be2efb68feada912c (diff) | |
download | php-git-777b6679a41abe40c4211c2f2a906a5218680872.tar.gz |
missed the test script
-rw-r--r-- | ext/spl/tests/bug62616.phpt | 15 |
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) |