php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12961 classes, arrays and serialize / sessions
Submitted: 2001-08-25 19:17 UTC Modified: 2001-09-08 16:09 UTC
From: mattar at jep dot de Assigned:
Status: Closed Package: Class/Object related
PHP Version: 4.0.4pl1 OS: Suse 6.3
Private report: No CVE-ID: None
 [2001-08-25 19:17 UTC] mattar at jep dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-08 16:09 UTC] mattar at jep dot de
Seems to be fixed in the latest Snapshot...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 06:01:30 2024 UTC