Skip to content

Commit 28edd77

Browse files
committed
PHP 5.3 fix for improved stats function for files driver
1 parent 55e759e commit 28edd77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

phpfastcache/3.0.0/drivers/files.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ function driver_stats($option = array()) {
162162
$key = $f;
163163
}
164164
else {
165-
$key = explode(".", $f)[0];
165+
//Because PHP 5.3, this cannot be written in single line
166+
$key = explode(".", $f);
167+
$key = $key[0];
166168
}
167169
$content[$key] = array("size"=>$size,"write_time"=>$object["write_time"]);
168170
if($this->isExpired($object)) {

0 commit comments

Comments
 (0)