Index: trunk/phase3/maintenance/tests/UploadFromChunksTest.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | |
20 | 20 | function makeChunk( $content ) { |
21 | 21 | $file = tempnam( wfTempDir(), "" ); |
22 | | - $fh = fopen( $file, "w" ); |
| 22 | + $fh = fopen( $file, "wb" ); |
23 | 23 | if ( $fh == false ) { |
24 | 24 | $this->markTestIncomplete( "Couldn't open $file!\n" ); |
25 | 25 | return; |