PHP 4.0 Bug #7502 Updated: Objects getting deleted in session
| From: | sniper@php.net | Date: | Mon, 27 Nov 2000 13:40:37 +0000 |
| Subject: | PHP 4.0 Bug #7502 Updated: Objects getting deleted in session | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39250@lists.php.net to get a copy of this message | ||
ID: 7502
Updated by: sniper
Reported By: jamie.php@avatopia.com
Status: Closed
Bug Type: *Session related
Assigned To:
Comments:
Should be fixed in CVS. Please try latest snapshot from
http://snaps.php.net/ and reopen this bug report if
this doesn't work with it.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-10-28 01:02:21] jamie.php@avatopia.com
class Payment {
var $MyVar;
function DoNothing () {
}
}
class Report {
var Payments // Payment Object
function Report () {
// Initialize payments object
Payments = new Payment;
}
}
Script on Page 1:
session_start();
$Report = new Report;
// Report now contains instance of Payment object
session_register(Report);
$Report->Payments->DoNothing(); // Call ANY function
header("Location: ../Php/Page2.php");
Script on Page 2:
session_start();
echo $Report->Payments; // This says that Payments is a non-object.
// Any non-object members of $Report are OK. Only child objects seem to be affected.
If function call to $Report->Payments->DoNothing() is removed from page 1 then things work OK
Our same code under 4.0.1pl2 works fine. We noticed the problem only when we upgraded to 4.0.3pl1
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7502