Re: [PHP4BETA] A quick clarification question about PHP4...
| From: | Scott Stevenson | Date: | Tue, 31 Aug 1999 11:06:29 +0000 |
| Subject: | Re: [PHP4BETA] A quick clarification question about PHP4... | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3903@lists.php.net to get a copy of this message | ||
> Oh, okay. I see. So even though this works in PHP3...
>
> class myClass {
> function myClass($name) {
> $this->myVar = "Hello, $name!";
> }
> }
>
>>>$name = "Scott";
> $myInstance = new myClass($name);
> echo $myInstance->myVar;
>
>
> ...it does not/will not work in PHP4?
>
>
> If so, that sucks.
Reading my message again, I realize this sounded a bit harsh. All my
comments are made with the upmost respect for the core PHP developers. Lord
knows I couldn't do what they/you are doing.
Also, to extrapolate on my "that sucks" comment :), this is obviously
dangerous in terms of backwards compatibility with PHP3, not to mention that
this isn't the way one would expect things to work. In the past, PHP has
basically done what you expect it to. I could see something like this
showing up on a someone's "CON" list.
But, so much code, so little time.
Thanks,
- Scott