com php-src: missed the test script: ext/spl/tests/bug62616.phpt

From: Date: Sat, 21 Jul 2012 15:30:32 +0000
Subject: com php-src: missed the test script: ext/spl/tests/bug62616.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-69651@lists.php.net to get a copy of this message
Commit: 777b6679a41abe40c4211c2f2a906a5218680872 Author: Xinchen Hui <laruence@php.net> Sat, 21 Jul 2012 23:30:32 +0800 Parents: ead076bac613bc69d83ab65be2efb68feada912c Branches: PHP-5.3 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=777b6679a41abe40c4211c2f2a906a5218680872 Log: missed the test script Changed paths: A ext/spl/tests/bug62616.phpt Diff: diff --git a/ext/spl/tests/bug62616.phpt b/ext/spl/tests/bug62616.phpt new file mode 100644 index 0000000..4e4be94 --- /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)

« previous php.cvs (#69651) next »