APCIterator is from global namespace

This commit is contained in:
Ralf Becker 2016-02-28 13:22:09 +00:00
parent 9bf4dd288e
commit b596b615b4

View File

@ -157,7 +157,7 @@ class Apc extends Base implements Provider
return false; return false;
} }
//error_log(__METHOD__."(".array2string($keys).")"); //error_log(__METHOD__."(".array2string($keys).")");
foreach(new APCIterator('user', $preg='/^'.preg_quote(self::key($keys).'/')) as $item) foreach(new \APCIterator('user', $preg='/^'.preg_quote(self::key($keys).'/')) as $item)
{ {
//error_log(__METHOD__."(".array2string($keys).") preg='$preg': calling apc_delete('$item[key]')"); //error_log(__METHOD__."(".array2string($keys).") preg='$preg': calling apc_delete('$item[key]')");
apc_delete($item['key']); apc_delete($item['key']);