The following code;
//... connect to mysqli database
$xyz = array();
$xyz[] = new Object();
$xyz[] = new Object();
apc_store("xyz", new ArrayObject(xyz), 600);
$xyz = apc_fetch("xyz");
mysqli_close($link);
causes mysqli_close to throw;
Error Type: mysqli_close() [function.mysqli-close]: Couldn't fetch mysqli (WARNING)
I need to store xyz as an ArrayObject, otherwise apc won't store the objects.
Is there some other way to do this? Presumably it's a bug in APC?