Bug #12230 Updated: Error with Object saved in Session
| From: | sebastian@php.net | Date: | Sun, 18 Nov 2001 06:24:51 +0000 |
| Subject: | Bug #12230 Updated: Error with Object saved in Session | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70779@lists.php.net to get a copy of this message | ||
ID: 12230
Updated by: sebastian
Reported By: schmidt@ibou.de
Old Status: Open
Status: Closed
Bug Type: Session related
Operating System: HP Unix 10
PHP Version: 4.0.5
New Comment:
This is not a bug. Please have a look at the error message: 'The script tried to execute a
method or access a property of an incomplete object. Please ensure that the class definition test of
the object you are trying to operate on was loaded _before_ the session was started'.
Previous Comments:
------------------------------------------------------------------------
[2001-07-18 09:36:54] schmidt@ibou.de
I have the follow Problem:
Fatal error: The script tried to execute a method or access a property of an incomplete object.
Please ensure that the class definition test of the object you are trying to operate on was loaded
_before_ the session was started in /u4_1/www/rf/includes/all_sicherheit.inc on line 3
Very simple:
In file 1:
class foo
{
...
}
$x=new foo
$x->... = 123;
session_register("x");
in 2. file:
class foo
{
...
}
echo $x->...;
When I do a session_register("x") befor I printed $x->...
it get the same error.
Is there a Workaround?
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12230&edit=1