cvs: php4 /ext/session/tests 003.phpt
| From: | Sascha Schumann | Date: | Sun, 24 Dec 2000 16:06:32 +0000 |
| Subject: | cvs: php4 /ext/session/tests 003.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3296@lists.php.net to get a copy of this message | ||
sas Sun Dec 24 08:06:32 2000 EDT
Modified files:
/php4/ext/session/tests 003.phpt
Log:
Also call some member functions of the deserialized objects
Index: php4/ext/session/tests/003.phpt
diff -u php4/ext/session/tests/003.phpt:1.1 php4/ext/session/tests/003.phpt:1.2
--- php4/ext/session/tests/003.phpt:1.1 Sun Dec 24 08:01:32 2000
+++ php4/ext/session/tests/003.phpt Sun Dec 24 08:06:32 2000
@@ -12,6 +12,9 @@
session_start();
session_decode('baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}}');
+$baz->method();
+$arr[3]->method();
+
var_dump($baz);
var_dump($arr);
session_destroy();
@@ -20,14 +23,14 @@
["bar"]=>
string(2) "ok"
["yes"]=>
- int(1)
+ int(2)
}
array(1) {
[3]=>
- object(foo)(2) {
+ &object(foo)(2) {
["bar"]=>
string(2) "ok"
["yes"]=>
- int(1)
+ int(2)
}
}