From 251d108d588d2e51b4925d9fc3576e04a891587a Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Sat, 9 May 2009 20:58:34 +0000 Subject: [PATCH] Add test for bug #47534 --- ext/spl/tests/bug47534.phpt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ext/spl/tests/bug47534.phpt 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 -- 2.50.1