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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mattar at jep dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 16:01:28 2024 UTC