mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/15305] Open file in binary mode
PHPBB3-15305
This commit is contained in:
@@ -115,7 +115,7 @@
|
|||||||
public function test_write_stream()
|
public function test_write_stream()
|
||||||
{
|
{
|
||||||
file_put_contents($this->path . 'file.txt', 'abc');
|
file_put_contents($this->path . 'file.txt', 'abc');
|
||||||
$stream = fopen($this->path . 'file.txt', 'r');
|
$stream = fopen($this->path . 'file.txt', 'rb');
|
||||||
$this->adapter->write_stream('file2.txt', $stream);
|
$this->adapter->write_stream('file2.txt', $stream);
|
||||||
fclose($stream);
|
fclose($stream);
|
||||||
$this->assertEquals(file_get_contents($this->path . 'file2.txt'), 'abc');
|
$this->assertEquals(file_get_contents($this->path . 'file2.txt'), 'abc');
|
||||||
|
Reference in New Issue
Block a user