Fwd: Re: [PHP-DEV] Assigning to $this
| From: | Lorenzo Alberton | Date: | Wed, 04 Feb 2004 14:38:07 +0000 |
| Subject: | Fwd: Re: [PHP-DEV] Assigning to $this | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-25493@lists.php.net to get a copy of this message | ||
FYI:
read the mail below, from php.internals newsgroup.
There are > 10 packages in PEAR that use the
"$this = $sth_else;" hack.
Since it will not be supported in PHP5 anymore,
has anyone a viable alternative to it?
-------- Original Message --------
Subject: Re: [PHP-DEV] Assigning to $this
Date: Wed, 04 Feb 2004 15:57:10 +0200
From: zeev@zend.com (Zeev Suraski)
Newsgroups: php.internals
Good idea. I added a fatal error. The reason is that there's pretty much
no chance that someone was doing this and his script will continue working.
This is definitely something which needs to be fixed by the app developer.
Andi
At 15:16 04/02/2004, Jan Lehnardt wrote:
>Hi,
>I was just wondering. An assignment to $this is not longer possible
>in PHP 5. This was agreed upon and everything is fine with that.
>However, when trying to assign to $this in PHP 5, this assignment
>is silently ignored. I thought it might be useful, or even needed
>to issue a notice there. I first thought this was a candidate for
>E_STRICT, but now I think it should notice the user at a lower level
>already.
>
>Any opinions?
>
>Jan
>---
>PHP Internals - PHP Runtime Development Mailing List
>To unsubscribe, visit: http://www.php.net/unsub.php