Skip to content

Commit 488ed65

Browse files
committed
Fix $this->namespaces to $this->itemInstances
1 parent f597fcc commit 488ed65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phpFastCache/Drivers/Zendshm/Driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ public function getStats()
133133
if(function_exists('zend_shm_cache_info')) {
134134
$stats = (array)zend_shm_cache_info();
135135
return (new driverStatistic())
136-
->setData(implode(', ', array_keys($this->namespaces)))
136+
->setData(implode(', ', array_keys($this->itemInstances)))
137137
->setInfo(sprintf("The Zend memory have %d item(s) in cache.\n For more information see RawData.", $stats['items_total']))
138138
->setRawData($stats)
139139
->setSize($stats['memory_total']);
140140
} else {
141141
/** zend_shm_cache_info supported V8 or higher */
142142
return (new driverStatistic())
143-
->setData(implode(', ', array_keys($this->namespaces)))
143+
->setData(implode(', ', array_keys($this->itemInstances)))
144144
->setInfo("The Zend memory statistics is only supported by ZendServer V8 or higher")
145145
->setRawData(null)
146146
->setSize(0);

0 commit comments

Comments
 (0)