xref: /PHP-8.1/ext/standard/tests/dir/bug71542.phpt (revision f924e972)
1--TEST--
2Bug #71542 (disk_total_space does not work with relative paths)
3--FILE--
4<?php
5$dir = basename(getcwd());
6chdir("..");
7var_dump(
8    disk_total_space($dir) !== false,
9    disk_free_space($dir) !== false
10);
11?>
12--EXPECT--
13bool(true)
14bool(true)
15