1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

- Fix tests (atm preg_match() is wrong)

This commit is contained in:
Marcus Boerger
2004-09-29 20:09:52 +00:00
parent c9d32d9b71
commit d748f8ecf2
+5 -1
View File
@@ -1,9 +1,12 @@
--TEST--
SPL: Problem with casting to string
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
$d = new DirectoryIterator('.');
var_dump($d);
var_dump(is_string($d));
preg_match('/x/', $d);
var_dump(is_string($d));
?>
@@ -11,5 +14,6 @@ var_dump(is_string($d));
--EXPECTF--
object(DirectoryIterator)#%d (0) {
}
bool(true)
bool(false)
bool(false)
===DONE===