Bug #7980 Updated: set object as session variable
| From: | mfischer@php.net | Date: | Thu, 06 Jun 2002 13:26:57 +0000 |
| Subject: | Bug #7980 Updated: set object as session variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9640@lists.php.net to get a copy of this message | ||
ID: 7980
Updated by: mfischer@php.net
Reported By: alexm@xanthus.net
-Status: Closed
+Status: Bogus
Bug Type: Class/Object related
Operating System: RedHat 6.1
PHP Version: 4.0.3pl1
New Comment:
You are missing the class definition before you access the object, this
is bogus.
Previous Comments:
------------------------------------------------------------------------
[2002-06-06 08:36:24] imarinoff@abv.bg
this problem still exists in php version 4.2
------------------------------------------------------------------------
[2000-12-30 19:44:01] sniper@php.net
No feedback. Considered fixed.
--Jani
------------------------------------------------------------------------
[2000-11-28 06:48:00] stas@php.net
Please try latest version from snaps.php.net and report if
this error still happens.
------------------------------------------------------------------------
[2000-11-26 18:40:45] alexm@xanthus.net
i wrote an object definition(class session) in which i implemented all
assesor/mutator methods i need on some vars in the object.
in auto_header.php script i have following logic:
if (!isset($session)) {
$session = new Session(session_id());
session_register("session");
} else {
if ($session->isValid()) {
echo("session is valid!");
} else {
echo("session has expired!");
}//esle
}//esle
i also require class definition and constants definition files in the
beggining of the script.
php engine gives me Fatal Error on line #5[if ($session->isValid()) {
].
here is the full text:
Fatal error: The script tried to execute a method or access a property
of an incomplete object. Please ensure that the class definition
session of the object you are trying to operate on was loaded _before_
the session was started
my hipothesis is that php doesn't have capabilities to save complex
object as session vars.
anyone has any sugestions?
thx,
alex
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=7980&edit=1