Allow package to be build on any architecture (not just i386).
[php5-apc.git] / tests / apc_002.phpt
1 --TEST--
2 APC: apc_store/fetch with objects
3 --SKIPIF--
4 <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5 --INI--
6 apc.enabled=1
7 apc.enable_cli=1
8 apc.file_update_protection=0
9 --FILE--
10 <?php
11
12 class foo { }
13 $foo = new foo;
14 var_dump($foo);
15 apc_store('foo',$foo);
16 unset($foo);
17 $bar = apc_fetch('foo');
18 var_dump($bar);
19 $bar->a = true;
20 var_dump($bar);
21
22 ?>
23 ===DONE===
24 <?php exit(0); ?>
25 --EXPECTF--
26 object(foo)#%d (0) {
27 }
28 object(foo)#%d (0) {
29 }
30 object(foo)#%d (1) {
31   ["a"]=>
32   bool(true)
33 }
34 ===DONE===