note 59887 deleted from language.oop.serialization by danbrown

From: Date: Sat, 07 Nov 2009 19:12:50 +0000
Subject: note 59887 deleted from language.oop.serialization by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162599@lists.php.net to get a copy of this message
Note Submitter: maurits_dekkers at DONTSPAM_ME dot planet dot nl ---- If you have register_globals = on, then be very careful about naming conventions when it comes to sessions and objects. Example: <?php /* Setting the session variable, which becomes "$order" if register_globals is on */ session_start() $_SESSION["order"] = "SomeValue"; /* Instantiating an object with the same name as the session variable */ $order = new Classname; ?> This will activate the __PHP_Incomplete_class object within your session variable! This, all references and methods to $order will not work. Took me hours to figure this out, so I hope this is helpful.

« previous php.notes (#162599) next »