]> granicus.if.org Git - php/commitdiff
- Fix test
authorMarcus Boerger <helly@php.net>
Wed, 29 Sep 2004 09:43:33 +0000 (09:43 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 29 Sep 2004 09:43:33 +0000 (09:43 +0000)
ext/spl/tests/dit_001.phpt

index 62aae99c8b087d2899a9e6d76fc7e488d1f1df2c..0a709da969e0b66868dd2319f24d680ab7c2db39 100755 (executable)
@@ -3,9 +3,13 @@ SPL: Problem with casting to string
 --FILE--
 <?php
 $d = new DirectoryIterator('.');
-preg_match('/x/', $d);
 var_dump($d);
+preg_match('/x/', $d);
+var_dump(is_string($d));
 ?>
+===DONE===
 --EXPECTF--
 object(DirectoryIterator)#%d (0) {
 }
+bool(true)
+===DONE===