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:
@@ -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===
|
||||
|
||||
Reference in New Issue
Block a user