Date: 10/28/00
- Next message: Matthew Hagerty: "[PHP-DEV] --with-apxs extension fails"
- Previous message: mrobinso <email protected>: "[PHP-DEV] PHP 4.0 Bug #7490 Updated: MYSQL_UNIX_ADDR warnings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: jamie.php <email protected>
Operating system: Linux
PHP version: 4.0.3pl1
PHP Bug Type: *Session related
Bug description: Objects getting deleted in session
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
-- Edit Bug report at: http://bugs.php.net/?id=7502&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Matthew Hagerty: "[PHP-DEV] --with-apxs extension fails"
- Previous message: mrobinso <email protected>: "[PHP-DEV] PHP 4.0 Bug #7490 Updated: MYSQL_UNIX_ADDR warnings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

