From 4a4e5d13b1f5b5485cf64d63b7c7c2de1f15fe13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Tue, 8 Aug 2017 00:28:29 +0200 Subject: [PATCH] [ticket/15305] Revert open in w+b mode PHPBB3-15305 --- tests/storage/adapter/local_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/storage/adapter/local_test.php b/tests/storage/adapter/local_test.php index 1e1f33292e..6d3ba10bca 100644 --- a/tests/storage/adapter/local_test.php +++ b/tests/storage/adapter/local_test.php @@ -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');