Continued:
[core.git] / inc / loader / class_ClassLoader.php
index 3c72647f852823f2c11eb5ebc7a5121cfc258cb7..31fc9de2ee2f52b45658c768a124c987dc842016 100644 (file)
@@ -133,7 +133,7 @@ class ClassLoader {
                // Skip here if already cached
                if ($this->listCached === FALSE) {
                        // Writes the cache file of our list away
-                       $cacheContent = serialize($this->classes);
+                       $cacheContent = json_encode($this->classes);
                        file_put_contents($this->listCacheFQFN, $cacheContent);
                } // END - if
 
@@ -240,7 +240,7 @@ class ClassLoader {
                        $cacheContent = file_get_contents($this->listCacheFQFN);
 
                        // And convert it
-                       $this->classes = unserialize($cacheContent);
+                       $this->classes = json_decode($cacheContent);
 
                        // List has been restored from cache!
                        $this->listCached = TRUE;