Objects corrupted

From: Date: Fri, 21 Apr 2000 08:51:19 +0000
Subject: Objects corrupted
Groups: php.version4 
Request: Send a blank email to php-version4+get-13861@lists.php.net to get a copy of this message
I, too, am experiencing corrupted objects. Create the object, save it in a session, query the values later and they either don't exist, or have corrupted values for them. Sometimes they work...sometimes they don't. Seems like the LAST set field in an object works, but the others don't. class whee { var one; var two; var three; function whee() { $this->$one = 'one'; $this->$two = 'two'; $this->$three = 'three'; } function query() { echo "$this->$one, $this->$two, $this->$three"; } } Three looks okay, but 1 & 2 don't hold values. I know some of you are just getting up, so g'morning. I'm going to bed. =) *wave* -Szii

« previous php.version4 (#13861) next »