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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 03 07:01:33 2024 UTC