mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-08 18:05:17 +02:00
[ticket/15305] Revert open in w+b mode
PHPBB3-15305
This commit is contained in:
parent
e87daeb952
commit
4a4e5d13b1
@ -115,7 +115,7 @@
|
||||
public function test_write_stream()
|
||||
{
|
||||
file_put_contents($this->path . 'file.txt', 'abc');
|
||||
$stream = fopen($this->path . 'file.txt', 'w+b');
|
||||
$stream = fopen($this->path . 'file.txt', 'rb');
|
||||
$this->adapter->write_stream('file2.txt', $stream);
|
||||
fclose($stream);
|
||||
$this->assertEquals(file_get_contents($this->path . 'file2.txt'), 'abc');
|
||||
|
Loading…
x
Reference in New Issue
Block a user