Getting warning while get from APC
chekalsky opened this issue · 0 comments
chekalsky commented
Warning became to appear on PHP 7.2
$values = $this->apcu_fetch($keys);
$tokens = array();
foreach ($values as $key => $value) {
$tokens[$key] = serialize($value);
}
Warning on foreach line: Invalid argument supplied for foreach()
$values
at this point equals false
. $keys
is array with one string.
Scrapbook v 1.4.5
PHP 7.2