diff options
Diffstat (limited to 'pear/PEAR/Installer.php')
-rw-r--r-- | pear/PEAR/Installer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 615a9c98a3..58541c5a67 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -261,7 +261,7 @@ class PEAR_Installer extends PEAR_Common if (sizeof($subst_from)) { $contents = str_replace($subst_from, $subst_to, $contents); } - $wp = @fopen($dest_file, "w"); + $wp = @fopen($dest_file, "wb"); if (!is_resource($wp)) { return $this->raiseError("failed to create $dest_file: $php_errormsg", PEAR_INSTALLER_FAILED); |