Bug #12961 Updated: classes, arrays and serialize / sessions

From: Date: Sat, 08 Sep 2001 20:09:51 +0000
Subject: Bug #12961 Updated: classes, arrays and serialize / sessions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65497@lists.php.net to get a copy of this message
ID: 12961 User updated by: mattar@jep.de Reported By: mattar@jep.de Old Status: Open Status: Closed Bug Type: Class/Object related Operating System: Suse 6.3 PHP Version: 4.0.4pl1 New Comment: Seems to be fixed in the latest Snapshot... Previous Comments: ------------------------------------------------------------------------ [2001-08-25 19:17:00] mattar@jep.de <? class test { var $num; function test($p) { $this->num=$p; } function nothing() {} } $temp[0]=new test("foo"); echo htmlentities(serialize($temp)); $temp[0]->nothing(); echo "<p>".htmlentities(serialize($temp)); ?> ---- The above script gives me the following output: ---- a:1:{i:0;O:4:"test":1:{s:3:"num";s:3:"foo";}} a:1:{} ---- This too breaks the session functions for that object. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12961&edit=1

« previous php.dev (#65497) next »