cvs: php4 /ext/session/tests 003.phpt

From: Date: Sun, 24 Dec 2000 16:01:32 +0000
Subject: cvs: php4 /ext/session/tests 003.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3294@lists.php.net to get a copy of this message
sas Sun Dec 24 08:01:32 2000 EDT Added files: /php4/ext/session/tests 003.phpt Log: Add session object deserialization test Index: php4/ext/session/tests/003.phpt +++ php4/ext/session/tests/003.phpt --TEST-- Session Object Deserialization --FILE-- <? class foo { var $bar = "ok"; function method() { $this->yes++; } } 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;}}'); var_dump($baz); var_dump($arr); session_destroy(); --EXPECT-- object(foo)(2) { ["bar"]=> string(2) "ok" ["yes"]=> int(1) } array(1) { [3]=> object(foo)(2) { ["bar"]=> string(2) "ok" ["yes"]=> int(1) } }

« previous php.cvs (#3294) next »