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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 01:01:30 2024 UTC