summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2003-05-27 23:31:56 +0000
committerPierre Joye <pajoye@php.net>2003-05-27 23:31:56 +0000
commit400e5c0b66317217cf1615d315549e96ff76f301 (patch)
tree993d64febe7baa00cf21a9f98da916c8675ce473
parent94136f0ccdaa0ebf19dd988e54a186d41757f53b (diff)
downloadphp-git-400e5c0b66317217cf1615d315549e96ff76f301.tar.gz
- Fix the "weird bug" with different serialized file under cli/cgi or apache sapi
Important Notice: *always* use 'wb' to write file, sapi cli and cgi force the default to be binary, apache does not.
-rw-r--r--pear/PEAR/Registry.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php
index 68a33b36e7..97102eb636 100644
--- a/pear/PEAR/Registry.php
+++ b/pear/PEAR/Registry.php
@@ -404,7 +404,7 @@ class PEAR_Registry extends PEAR
if (PEAR::isError($e = $this->_lock(LOCK_EX))) {
return $e;
}
- $fp = $this->_openPackageFile($package, 'w');
+ $fp = $this->_openPackageFile($package, 'wb');
if ($fp === null) {
$this->_unlock();
return false;