Re: [SMARTY-DEV] problems with PHP5
| From: | Terje Torkelsen | Date: | Wed, 25 Jun 2003 13:51:46 +0000 |
| Subject: | Re: [SMARTY-DEV] problems with PHP5 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1697@lists.php.net to get a copy of this message | ||
On Wed, 25 Jun 2003 1:12:18 +0200, Messju Mohr wrote
(in message <20030624231218.GI3767@pharao.lammfellpuschen.de>):
> On Tue, Jun 24, 2003 at 10:10:04PM +0200, Tom Sommer wrote:
>> Terje Torkelsen wrote:
>>
>>> 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
>
> what's your problem, tom? you just shouldn't call your variables
> $this.
>
> "$this" *may* become reserved to be only allowed inside an object's
> contexts (which does *not* mean you cannot use "$this" inside a file
> that is included by an object's method).
>
> php5 is in such an early stage and the php-team has shown in history
> that it has no problem to change internals/bc/side-effect-behavior if
> it regards it as "good" in the long run (with "good" not necessarily
> reading as "good, for you", of course ;) .
>
> maybe the restrictions on $this get less (unlikely), maybe the
> restrictions on $this even get tightened (if it goes bad for us, maybe
> so that no include may use $this. (hopefully this is also to be
> considered "unlikely" due to php being a template-system, as we all
> know and appreciate :))
>
> anyway, IMHO it's stupid to want to do php5 a favour and put any (even
> the slightest) restriction on our current design and/or optimizations
> regarding php5. our target-environment (=php5 in this case) is likely
> to change a lot, still, so why try to optimize for it?
>
> i am hubristic that we will be able to make smarty run under php5 when
> it's done. i'm willing to try when php5 is alpha. i'm willing to test
> when php5 is beta. but i don't see a point in worrying about it now.
> for me it's like trying to make smarty suitable for macos-11/pussy-cat
> or for l0ng-h0rn/200x and for an hyperthreaded apache3.
>
> or did i miss some concessions regarding php5 (sth. i could rely on),
> recently?
>
> greetings
> messju
dont know if you follow the development on php5, i do as im _very_ intrested
in the new features. it might be a while till the final release, but the
developers are wrapping up the beta and aiming for 30th of june, so it not
far from a beta..