$bar = \'BAR\'; apc_store(\'foo\', $bar); var_dump(apc_fetch(\'foo\'));
Within one request this work.
Now If i try to do a var_dump(a
var_dump(a
Your default ttl (apc.ttl) is 0 seconds, that is strange - please try to specify a ttl (in seconds) when storing the value:
apc_store('foo', $bar, 60);