1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext/spl/tests/bug68825.phpt
T
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

28 lines
594 B
PHP

--TEST--
Bug #68825 (Exception in DirectoryIterator::getLinkTarget())
--FILE--
<?php
$dir = __DIR__ . '/bug68825';
if (!mkdir($dir)) {
die('Failed to create temporary directory for testing');
} else if (!symlink(__FILE__, $dir . '/bug')) {
die('Failed to create symbolic link');
}
$di = new \DirectoryIterator($dir);
foreach ($di as $entry) {
if ('bug' === $entry->getFilename()) {
var_dump($entry->getLinkTarget());
}
}
?>
--EXPECTF--
string(%d) "%s%eext%espl%etests%ebug68825.php"
--CLEAN--
<?php
$dir = __DIR__ . '/bug68825';
unlink($dir . '/bug');
rmdir($dir);
?>