function parsePlainPrintr($data)
{
$result = array();
array_walk(
explode("\n", $data),
function($i) use(&$result) {
$i = trim($i);
if (0 !== strpos($i, '[')) {
return;
}
$i = explode('] => ', ltrim($i, '['), 2);
if (isset($i[1])) {
$result[$i[0]] = $i[1];
}
}
);
return $result;
}
print_r(parsePlainPrintr($a));
static unsigned long hash(apc_cache_key_t key)
{
return (unsigned long)(key.data.file.device + key.data.file.inode);
}
APC caches based on the path to the class, not just the class name. So as long as each of your versions have their own copy of the class you shouldn't have any problems.