[ticket/10850] Changed the fopen mode to wb

Changed the fopen mode from "wt" to "wb" as requested in the PR.
The objective behind this is to prevent writting stuff like "\r\r\n" in
windows

PHPBB3-10850
This commit is contained in:
Bruno Ais 2012-04-26 10:26:58 +01:00 committed by Andreas Fischer
parent 80180a6a20
commit 3baeb4276d

View file

@ -237,7 +237,7 @@ $supported_dbms = array('firebird', 'mssql', 'mysql_40', 'mysql_41', 'oracle', '
foreach ($supported_dbms as $dbms) foreach ($supported_dbms as $dbms)
{ {
$fp = fopen($schema_path . $dbms . '_schema.sql', 'wt'); $fp = fopen($schema_path . $dbms . '_schema.sql', 'wb');
$line = ''; $line = '';