We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ced8e88 + 99e7c5c commit 3374adcCopy full SHA for 3374adc
ext/standard/tests/file/bug81145.phpt
@@ -6,8 +6,11 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6
if (PHP_INT_SIZE !== 8) die("skip this test is for 64bit platforms only");
7
if (disk_free_space(__DIR__) < 0x220000000) die("skip insuffient disk space");
8
if (PHP_OS_FAMILY !== "Windows") {
9
- exec("fallocate -h", $output, $status);
10
- if ($status !== 0) die("skip fallocate(1) not available");
+ $src = __DIR__ . "/bug81145_src.bin";
+ define('SIZE_4G', 0x100000000);
11
+ exec("fallocate -l " . (SIZE_4G-0x100) . " " . escapeshellarg($src), $output, $status);
12
+ if ($status !== 0) die("skip fallocate() not supported");
13
+ @unlink(__DIR__ . "/bug81145_src.bin");
14
}
15
?>
16
--FILE--
0 commit comments