Bug #12230: Error with Object saved in Session

From: Date: Wed, 18 Jul 2001 13:36:55 +0000
Subject: Bug #12230: Error with Object saved in Session
Groups: php.dev 
Request: Send a blank email to php-dev+get-60216@lists.php.net to get a copy of this message
From: schmidt@ibou.de Operating system: HP Unix 10 PHP version: 4.0.5 PHP Bug Type: Session related Bug description: Error with Object saved in Session 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 bug report at: http://bugs.php.net/?id=12230&edit=1

« previous php.dev (#60216) next »