mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 11:24:35 +02:00
[ticket/15305] Use php://temp stream instead of tmpfile()
The tmpfile() return a file resource, but is not in binary mode. PHPBB3-15305
This commit is contained in:
@ -170,7 +170,7 @@ class storage
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Simulate the stream
|
// Simulate the stream
|
||||||
$stream = tmpfile();
|
$stream = fopen('php://temp', 'w+b');
|
||||||
fwrite($stream, $adapter->get_contents($path));
|
fwrite($stream, $adapter->get_contents($path));
|
||||||
rewind($stream);
|
rewind($stream);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user