]> granicus.if.org Git - php/commitdiff
We'd better not include this test script
authorXinchen Hui <laruence@php.net>
Thu, 5 Feb 2015 08:27:01 +0000 (16:27 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 5 Feb 2015 08:27:01 +0000 (16:27 +0800)
tests/basic/bug68986.phpt [deleted file]

diff --git a/tests/basic/bug68986.phpt b/tests/basic/bug68986.phpt
deleted file mode 100644 (file)
index 7827b78..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
---TEST--
-Bug #68986 (pointer returned by php_stream_fopen_temporary_file not validated in memory.c)
---INI--
-default_charset=UTF-8
---FILE--
-<?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
-       die('skip.. only for unix');
-}
-
-$tempDir = getenv("TMPDIR");
-mkdir($tempDir . '/php68986');
-system("chmod 444 " . $tempDir . '/php68986');
-putenv("TMPDIR=" . $tempDir . '/php68986');
-
-$fp = fopen('php://temp', 'r+');
-$data = implode('', array_fill(0, (1024 * 1024 * 2), 'A'));
-var_dump(fwrite($fp, $data)); 
-fclose($fp);
-rmdir($tempDir . '/php68986');
-
---EXPECT--
-int(2088960)