diff --git a/phpBB/phpbb/storage/storage.php b/phpBB/phpbb/storage/storage.php index 46e75daadf..7798b28ad4 100644 --- a/phpBB/phpbb/storage/storage.php +++ b/phpBB/phpbb/storage/storage.php @@ -170,7 +170,7 @@ class storage else { // Simulate the stream - $stream = tmpfile(); + $stream = fopen('php://temp', 'w+b'); fwrite($stream, $adapter->get_contents($path)); rewind($stream); }