diff options
| author | Sascha Schumann <sas@php.net> | 2000-12-24 16:06:32 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2000-12-24 16:06:32 +0000 |
| commit | 80ff1a3874aa894754a954238f28febe05d964a2 (patch) | |
| tree | 701fe3039a7f149993f8371771e415f7ba502ae1 | |
| parent | 971e3a6473fc8ba016d1bcc3f25e962904174067 (diff) | |
| download | php-git-80ff1a3874aa894754a954238f28febe05d964a2.tar.gz | |
Also call some member functions of the deserialized objects
| -rw-r--r-- | ext/session/tests/003.phpt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/session/tests/003.phpt b/ext/session/tests/003.phpt index 200d907403..5401a2d0ba 100644 --- a/ext/session/tests/003.phpt +++ b/ext/session/tests/003.phpt @@ -12,6 +12,9 @@ session_id("test"); 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 @@ object(foo)(2) { ["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) } } |
