Browse Source

expand test for #68986

pull/1051/head
Nayana Hettiarachchi 11 years ago
parent
commit
d00fe6fb0c
  1. 7
      tests/basic/bug68986.phpt

7
tests/basic/bug68986.phpt

@ -8,6 +8,11 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. only for unix');
}
$fp = fopen('php://temp', 'r+');
$data = implode('', array_fill(0, (1024 * 1024 * 2), 'A'));
var_dump(fwrite($fp, $data));
fclose($fp);
$tempDir = getenv("TMPDIR");
mkdir($tempDir . '/php68986');
system("chmod 444 " . $tempDir . '/php68986');
@ -19,5 +24,7 @@ var_dump(fwrite($fp, $data));
fclose($fp);
rmdir($tempDir . '/php68986');
?>
--EXPECT--
int(2097152)
int(2088960)
Loading…
Cancel
Save