Re: [SMARTY-DEV] problems with PHP5
| From: | boots | Date: | Tue, 24 Jun 2003 22:34:57 +0000 |
| Subject: | Re: [SMARTY-DEV] problems with PHP5 | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1694@lists.php.net to get a copy of this message | ||
>> PHP5-cvs results in a fatal error when $this is used as a variable
>> outside any class, even if the file is going to be included inside a
>> class... otherwise php5-cvs is backward compatible, the rules are
>> just more strict.
>
> WHAT?! That's... WHAT!
> Hope they change that
Really? To what? The same as PHP4 behaviour? I was shocked when I
learned that PHP4 allowed you to use $this as a "normal" var. PHP does
a lot of dumb things and breaks many long-cherished tenents of CS but
that one was really galling. Is it a special variable or not? Of course
it is, so of course you should only be able to use it as such. There is
a huge wtf factor when running across code that uses $this in
situations where it is *not* a special var.
xo boots
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com