]> granicus.if.org Git - php/commitdiff
expand test for #68986
authorNayana Hettiarachchi <nayana@ddproperty.com>
Thu, 5 Feb 2015 06:34:36 +0000 (14:34 +0800)
committerNayana Hettiarachchi <nayana@ddproperty.com>
Thu, 5 Feb 2015 06:34:36 +0000 (14:34 +0800)
tests/basic/bug68986.phpt

index 7827b78a0c0a8ff9d197db20c2bc01e818905987..f40f960309427390f511892895e0b9bdc90f25e4 100644 (file)
@@ -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)