aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Ais <brunoaiss@gmail.com>2012-04-26 10:26:58 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-06-28 23:10:12 +0200
commit3baeb4276d6e09db1e81893bdad72a692f383e21 (patch)
tree67618c43e533398b2ea531b67d75a061f92c3e63
parent80180a6a20077aff293b3d3dd0ce8b0065c33f3b (diff)
downloadforums-3baeb4276d6e09db1e81893bdad72a692f383e21.tar
forums-3baeb4276d6e09db1e81893bdad72a692f383e21.tar.gz
forums-3baeb4276d6e09db1e81893bdad72a692f383e21.tar.bz2
forums-3baeb4276d6e09db1e81893bdad72a692f383e21.tar.xz
forums-3baeb4276d6e09db1e81893bdad72a692f383e21.zip
[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
-rw-r--r--phpBB/develop/create_schema_files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php
index d44efb8870..7657932a05 100644
--- a/phpBB/develop/create_schema_files.php
+++ b/phpBB/develop/create_schema_files.php
@@ -237,7 +237,7 @@ $supported_dbms = array('firebird', 'mssql', 'mysql_40', 'mysql_41', 'oracle', '
foreach ($supported_dbms as $dbms)
{
- $fp = fopen($schema_path . $dbms . '_schema.sql', 'wt');
+ $fp = fopen($schema_path . $dbms . '_schema.sql', 'wb');
$line = '';