projects
/
php5-apc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New PHP5 APC - version 3.0.18, using PHP5 5.2.0-8+etch10,
[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===