summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug31348.phpt
blob: dcb627af2297176c63455088b1b1f9e85634b597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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===