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 032f862 + 2a334f1 commit a249980Copy full SHA for a249980
ext/standard/tests/streams/bug70362.phpt
@@ -4,11 +4,16 @@ Bug #70362 (Can't copy() large 'data://' with open_basedir)
4
open_basedir=.
5
--FILE--
6
<?php
7
-$temp = tempnam(__DIR__, 'test');
+$file = __DIR__ . '/bug70362.txt';
8
$data = str_repeat('0', 4096);
9
$data = 'data://plain/text;base64,' . base64_encode($data);
10
-var_dump(copy($data, $temp));
11
-echo file_get_contents($temp);
+var_dump(copy($data, $file));
+echo file_get_contents($file);
12
+?>
13
+--CLEAN--
14
+<?php
15
16
+@unlink($file);
17
?>
18
--EXPECT--
19
bool(true)
0 commit comments