diff --git a/ByteCodeCache/PhpOpcache.php b/ByteCodeCache/PhpOpcache.php index a713682..89f1322 100644 --- a/ByteCodeCache/PhpOpcache.php +++ b/ByteCodeCache/PhpOpcache.php @@ -135,9 +135,9 @@ protected function calculateCacheSlots() protected function normalizeStatus($cacheData) { if (!is_array($cacheData)) { - return $this->createFallbackStatusData(); + $cacheData = array(); } - return $cacheData; + return array_replace_recursive($this->getDefaultStatusData(), $cacheData); } /** @@ -172,7 +172,7 @@ protected function bytesToMb($bytes) * * @return array */ - protected function createFallbackStatusData() + protected function getDefaultStatusData() { return array( 'opcache_enabled' => false,