From: Etienne Kneuss Date: Sat, 9 May 2009 20:58:34 +0000 (+0000) Subject: Add test for bug #47534 X-Git-Tag: php-5.2.10RC1~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=251d108d588d2e51b4925d9fc3576e04a891587a;p=php Add test for bug #47534 --- diff --git a/ext/spl/tests/bug47534.phpt b/ext/spl/tests/bug47534.phpt new file mode 100644 index 0000000000..44de3608ce --- /dev/null +++ b/ext/spl/tests/bug47534.phpt @@ -0,0 +1,14 @@ +--TEST-- +SPL: RecursiveDirectoryIterator bug 47534 +--FILE-- +rewind(); +echo gettype($it1->current())."\n"; + +$it2 = new RecursiveDirectoryIterator(dirname(__FILE__)); +$it2->rewind(); +echo gettype($it2->current())."\n"; +--EXPECT-- +string +object