|
@@ -216,7 +216,8 @@ class sfFileCache extends sfCache
|
|
|
clearstatcache(); // because the filesize can be cached by PHP itself...
|
|
|
$length = @filesize($path);
|
|
|
$mqr = get_magic_quotes_runtime();
|
|
|
- set_magic_quotes_runtime(0);
|
|
|
+ //set_magic_quotes_runtime(0); DEPRECATED
|
|
|
+ ini_set("magic_quotes_runtime", 0);
|
|
|
switch ($type)
|
|
|
{
|
|
|
case self::READ_TIMEOUT:
|
|
@@ -240,7 +241,8 @@ class sfFileCache extends sfCache
|
|
|
default:
|
|
|
throw new sfConfigurationException(sprintf('Unknown type "%s".', $type));
|
|
|
}
|
|
|
- set_magic_quotes_runtime($mqr);
|
|
|
+ //set_magic_quotes_runtime($mqr); DEPRECATED
|
|
|
+ ini_set("magic_quotes_runtime", 0);
|
|
|
@flock($fp, LOCK_UN);
|
|
|
@fclose($fp);
|
|
|
|