projects
/
php5-apc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New PHP5 APC - version 3.0.19, using PHP5 5.2.0-8+etch11,
[php5-apc.git]
/
tests
/
apc_003.phpt
diff --git
a/tests/apc_003.phpt
b/tests/apc_003.phpt
index
4f5b5ff
..
8f4876e
100644
(file)
--- a/
tests/apc_003.phpt
+++ b/
tests/apc_003.phpt
@@
-11,13
+11,13
@@
apc.file_update_protection=0
class foo { }
$foo = new foo;
class foo { }
$foo = new foo;
-var_dump($foo);
+print_r($foo);
apc_store('foo',$foo);
unset($foo);
$bar = apc_fetch('foo');
apc_store('foo',$foo);
unset($foo);
$bar = apc_fetch('foo');
-var_dump($bar);
+print_r($bar);
$bar->a = true;
$bar->a = true;
-var_dump($bar);
+print_r($bar);
class bar extends foo
{
class bar extends foo
{
@@
-48,65
+48,52
@@
class baz extends bar
}
$baz = new baz;
}
$baz = new baz;
-var_dump($baz);
+print_r($baz);
$baz->change();
$baz->change();
-var_dump($baz);
+print_r($baz);
apc_store('baz', $baz);
unset($baz);
apc_store('baz', $baz);
unset($baz);
-var_dump(apc_fetch('baz'));
+print_r(apc_fetch('baz'));
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
-object(foo)#%d (0) {
-}
-object(foo)#%d (0) {
-}
-object(foo)#%d (1) {
- ["a"]=>
- bool(true)
-}
-object(baz)#%d (6) {
- ["pri:private"]=>
- string(3) "baz"
- ["pub"]=>
- string(3) "bar"
- ["pro:protected"]=>
- string(3) "bar"
- ["pri:private"]=>
- string(3) "bar"
- ["bar"]=>
- bool(true)
- ["baz"]=>
- bool(true)
-}
-object(baz)#%d (6) {
- ["pri:private"]=>
- string(3) "baz"
- ["pub"]=>
- string(3) "bar"
- ["pro:protected"]=>
- string(3) "bar"
- ["pri:private"]=>
- string(3) "mod"
- ["bar"]=>
- bool(true)
- ["baz"]=>
- bool(true)
-}
-object(baz)#%d (6) {
- ["pri:private"]=>
- string(3) "baz"
- ["pub"]=>
- string(3) "bar"
- ["pro:protected"]=>
- string(3) "bar"
- ["pri:private"]=>
- string(3) "mod"
- ["bar"]=>
- bool(true)
- ["baz"]=>
- bool(true)
-}
+foo Object
+(
+)
+foo Object
+(
+)
+foo Object
+(
+ [a] => 1
+)
+baz Object
+(
+ [pri%sprivate] => baz
+ [pub] => bar
+ [pro:protected] => bar
+ [pri%sprivate] => bar
+ [bar] => 1
+ [baz] => 1
+)
+baz Object
+(
+ [pri%sprivate] => baz
+ [pub] => bar
+ [pro:protected] => bar
+ [pri%sprivate] => mod
+ [bar] => 1
+ [baz] => 1
+)
+baz Object
+(
+ [pri%sprivate] => baz
+ [pub] => bar
+ [pro:protected] => bar
+ [pri%sprivate] => mod
+ [bar] => 1
+ [baz] => 1
+)
===DONE===
===DONE===