mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- 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.
This commit is contained in:
parent
94136f0ccd
commit
400e5c0b66
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user