return $this->raiseError("PEAR_Config::readConfigFile fopen('$file','r') failed");
}
$size = filesize($file);
+ $rt = get_magic_quotes_runtime();
+ set_magic_quotes_runtime(0);
$contents = fread($fp, $size);
+ set_magic_quotes_runtime($rt);
fclose($fp);
$version = '0.1';
if (preg_match('/^#PEAR_Config\s+(\S+)\s+/si', $contents, $matches)) {
return $this->raiseError('PEAR_Registry: could not open filemap', PEAR_REGISTRY_ERROR_FILE, null, null, $php_errormsg);
}
$fsize = filesize($this->filemap);
+ $rt = get_magic_quotes_runtime();
+ set_magic_quotes_runtime(0);
$data = fread($fp, $fsize);
+ set_magic_quotes_runtime($rt);
fclose($fp);
$tmp = unserialize($data);
if (!$tmp && $fsize > 7) {
if ($fp === null) {
return null;
}
+ $rt = get_magic_quotes_runtime();
+ set_magic_quotes_runtime(0);
$data = fread($fp, filesize($this->_packageFileName($package)));
+ set_magic_quotes_runtime($rt);
$this->_closePackageFile($fp);
$data = unserialize($data);
if ($key === null) {