1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/spl/tests/bug31348.phpt
2005-12-21 22:22:33 +00:00

18 lines
273 B
PHP
Executable File

--TEST--
Bug #31348 (CachingIterator::rewind() leaks)
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
$a = Array("some","blah");
$i = new ArrayIterator($a);
$ci = new CachingIterator($i);
$ci->rewind();
?>
===DONE===
--EXPECT--
===DONE===