php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19221 Session work not correctly
Submitted: 2002-09-03 23:08 UTC Modified: 2002-09-04 10:06 UTC
From: kv_m at rambler dot ru Assigned:
Status: Not a bug Package: Session related
PHP Version: 4CVS-2002-09-03 OS: FreeBSD 4.6
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: kv_m at rambler dot ru
New email:
PHP Version: OS:

 

 [2002-09-03 23:08 UTC] kv_m at rambler dot ru
<?
ini_set("register_globals", 1);
class foo {
	var $bar = "ok";

	function method() { $this->yes = "done"; }
}
$baz = new foo;
$baz->method();
$arr[3] = new foo;
$arr[3]->method();
session_register("baz");
session_register("arr");
print session_encode()."\n";
session_destroy();
?>

Result:
baz|N;arr|N; 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-04 10:06 UTC] sander@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 00:00:02 2026 UTC