From 400e5c0b66317217cf1615d315549e96ff76f301 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 27 May 2003 23:31:56 +0000 Subject: [PATCH] - 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. --- pear/PEAR/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index 68a33b36e78..97102eb636f 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;