1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00

- Fix test

This commit is contained in:
Marcus Boerger
2004-09-29 09:43:33 +00:00
parent 7133858532
commit 2f40d61bed

View File

@@ -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===