]> granicus.if.org Git - php/commitdiff
- Add new test
authorMarcus Boerger <helly@php.net>
Mon, 24 Jan 2005 20:22:56 +0000 (20:22 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 24 Jan 2005 20:22:56 +0000 (20:22 +0000)
ext/spl/tests/bug31348.phpt [new file with mode: 0755]

diff --git a/ext/spl/tests/bug31348.phpt b/ext/spl/tests/bug31348.phpt
new file mode 100755 (executable)
index 0000000..047e4b2
--- /dev/null
@@ -0,0 +1,15 @@
+--TEST--
+Bug #31348 (CachingIterator::rewind() leaks)
+--FILE--
+<?php
+$a = Array("some","blah");
+$i = new ArrayIterator($a);
+
+$ci = new CachingIterator($i);
+
+$ci->rewind();
+
+?>
+===DONE===
+--EXPECT--
+===DONE===