php-4.0.3pl1 and sessions

From: Date: Thu, 19 Oct 2000 12:07:00 +0000
Subject: php-4.0.3pl1 and sessions
Groups: php.general 
Request: Send a blank email to php-general+get-21140@lists.php.net to get a copy of this message
Hi, I have a php-script which uses session-management via session_register(), session_... and it runs quite fine with php-4.0.1. Now I updated to php-4.0.3pl1 and I got big problems. php says: PHP Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>pswcart</b> of the object you are trying to operate on was loaded _before_ the session was started in ... The reason is, that the file with the class-definition of pswcart is included AFTER the session is started (which seems to work in php-4.0.1). Now my question: Is there a switch or a compiler-switch so that php-4.0.3 behaves in session-management the same way, as php-4.0.1 did ? Thanks in advance. --------------------------------------------------- Tel.: (49)7150/393394 Parity Software GmbH Fax.: (49)7150/393351 Stuttgarter Strasse 42/2 E-Mail: js@parity-soft.de D-71701 Schwieberdingen ---------------------------------------------------

« previous php.general (#21140) next »