PHP 4.0 Bug #5200 Updated: Session Support for Objects

From: Date: Sun, 25 Jun 2000 18:00:46 +0000
Subject: PHP 4.0 Bug #5200 Updated: Session Support for Objects
Groups: php.dev 
Request: Send a blank email to php-dev+get-22287@lists.php.net to get a copy of this message
ID: 5200 User Update by: tite@wolstudios.com Status: Feedback Bug Type: Session related Description: Session Support for Objects What I try to do is to be able to see objects declared in a php web from another web (in the same session). Something like this. test.php: session_start(); class Cart { ...... $carrito = new Cart; session_register("carrito"); ?><A HREF="next_page.php">Next</A><?php .... next_page.php: session_start(); /* If I do it with the class, the sentence $carr = new Cart; Will give me an error **/ echo "<H1>Jur!... (".$carrito->items["10"].")<BR>\n"; /* This will not show any result when in test.php does show the desired result **/ I am running php 4.0 with Apache 1.3.12 The above scripts will work for variables and arrays. Thank You again. Josafat Moragrega Fernandez Full Bug description available at: http://bugs.php.net/version4/?id=5200

« previous php.dev (#22287) next »