]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/framework/I18N/core/TCache_Lite.php
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / framework / I18N / core / TCache_Lite.php
index 69e1c308694620e4acacbd2e494350a855600315..b42bf1f9f85ec58fcb144e83872f865f7b823795 100644 (file)
@@ -228,7 +228,7 @@ class TCache_Lite
     * @param array $options options
     * @access public
     */
-    function TCache_Lite($options = array(null))
+    function __construct($options = array(null))
     {
         $availableOptions = array(     'automaticSerialization',
                                                                'fileNameProtection',
@@ -533,18 +533,11 @@ class TCache_Lite
                // because the filesize can be cached by PHP itself...
             clearstatcache();
             $length = @filesize($this->_file);
-                       if(version_compare(PHP_VERSION, '5.3.0', 'lt'))
-                       {
-                   $mqr = get_magic_quotes_runtime();
-               set_magic_quotes_runtime(0);
-                       }
             if ($this->_readControl) {
                 $hashControl = @fread($fp, 32);
                 $length = $length - 32;
             }
             $data = @fread($fp, $length);
-                       if(isset($mqr))
-                   set_magic_quotes_runtime($mqr);
             if ($this->_fileLocking) @flock($fp, LOCK_UN);
             @fclose($fp);
             if ($this->_readControl) {