mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
19 lines
402 B
Plaintext
19 lines
402 B
Plaintext
|
--TEST--
|
||
|
Bug #42364 (Crash when using getRealPath with DirectoryIterator)
|
||
|
--SKIPIF--
|
||
|
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$it = new DirectoryIterator(dirname(__FILE__));
|
||
|
|
||
|
foreach ($it as $e) {
|
||
|
if (gettype($e->getRealPath()) != "string") {
|
||
|
echo $e->getFilename(), " is a ", gettype($e->getRealPath()), "\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
echo "===DONE==="
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
===DONE===
|