php-8.0.30-src/ext/standard/tests/dir/bug71542.phpt

15 lines
251 B
PHP

--TEST--
Bug #71542 (disk_total_space does not work with relative paths)
--FILE--
<?php
$dir = basename(getcwd());
chdir("..");
var_dump(
disk_total_space($dir) !== false,
disk_free_space($dir) !== false
);
?>
--EXPECT--
bool(true)
bool(true)