2
APC: apc_store/fetch with objects (php 5.3)
5
require_once(dirname(__FILE__) . '/skipif.inc');
6
if(version_compare(zend_version(), '2.3.0') < 0) {
13
apc.file_update_protection=0
20
apc_store('foo',$foo);
22
$bar = apc_fetch('foo');
30
protected $pro = 'bar';
31
private $pri = 'bar'; // we don't see this, we'd need php 5.1 new serialization
33
function __construct()
48
function __construct()
50
parent::__construct();
59
apc_store('baz', $baz);
61
var_dump(apc_fetch('baz'));
76
["pri":"baz":private]=>
82
["pri":"bar":private]=>
90
["pri":"baz":private]=>
96
["pri":"bar":private]=>
104
["pri":"baz":private]=>
110
["pri":"bar":private]=>