From: Platonides Date: Sat, 13 Feb 2010 13:46:29 +0000 (+0000) Subject: parserTests.txt shall be opened in text mode. X-Git-Tag: 1.31.0-rc.0~37778 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=a9ec2b1493eb9df269aebbbc9e219a66b873965f;p=lhc%2Fweb%2Fwiklou.git parserTests.txt shall be opened in text mode. Followup of r62006 which broke parser tests on windows (crlf line endings). --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index ae12c20998..8bd1c202cb 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -1562,7 +1562,7 @@ class TestFileIterator implements Iterator { global $IP; $this->file = $file; - $this->fh = fopen($this->file, "r"); + $this->fh = fopen($this->file, "rt"); if( !$this->fh ) { wfDie( "Couldn't open file '$file'\n" ); }