Re: Variable Scope
| From: | LingWitt at insightbb dot com | Date: | Sat, 30 Aug 2003 19:32:12 +0000 |
| Subject: | Re: Variable Scope | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4292@lists.php.net to get a copy of this message | ||
Actually, with a careful implementation, backwards compatibility can be achieved. A separate symbol table, indeed I agree, would be undesirable. Instead, the interpreter could simply mask the other variables of the same name during the loop, and return things to normal afterward.
P.S.
Consider the issue dead.
On Saturday, Aug 30, 2003, at 15:25 America/New_York, Ilia Alshanetsky wrote:
PHP has worked like this for years and people were & are happy with it. Even if you somehow were able to convince (which is not happening) that this change is useful, it still would not happen. A major functionality change such as this would break backwards compatibility and render vast majority of existing PHP code inoperable. If you absolutely need such a functionality, either switch to a different language or customize your copy of PHP as suggested by DvDmanDT. Ilia