Re: planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?
| From: | Alan Knowles | Date: | Fri, 26 May 2006 01:57:32 +0000 |
| Subject: | Re: planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23675@lists.php.net to get a copy of this message | ||
actaully it should have been declare() - as I think the syntax for that
almost works already, but yes, code doesnt get compiled if it's inside a
block.
Regards
Alan
Zeev Suraski wrote:
> At 03:57 26/05/2006, Alan Knowles wrote:
>> Can we start concentrating on finding a real solution to BC breaks
>> rather than throwing them out there and everyone complaining?
>>
>> define(php5) {
>> stuff that breaks in php6
>> }
>> define(php6) {
>> stuff that doesnt work in PHP5
>> }
>
> What's the semantics of that? The code inside doesn't get executed if
> it's not the define()'d PHP version?
>
> Zeev