Re: Bug #2675: Misbehavior of object initializers
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Bug #2675: Misbehavior of object initializers | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12159@lists.php.net to get a copy of this message | ||
> $this->type was supposed to be $foo->type
>
> >
> > // This will not
> > $bar = new Bar();
> > echo( 'I should be foo also : ' . $bar->type );
> $this->type was supposed to be $bar->type
Why do you say that $bar->type should be printing "foo"? I obviously
should print "bar", and it does so on my system.
-Rasmus