Re: [PHP4BETA] Objects corrupted
| From: | thies at digicol dot de | Date: | Fri, 21 Apr 2000 09:51:26 +0000 |
| Subject: | Re: [PHP4BETA] Objects corrupted | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13870@lists.php.net to get a copy of this message | ||
On Fri, Apr 21, 2000 at 01:51:19AM -0700, Szii wrote:
> 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 have included a little session sample with an object (works
for me) could you please try to modify it to shoud the
problem you're having?
tc
>
> I know some of you are just getting up, so g'morning.
> I'm going to bed. =) *wave*
>
>
> -Szii
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany
Attachment: [application/x-httpd-php3] s.php3
Attachment: [application/x-httpd-php3] s.php3