Re: Re: PHP 5.1 (Or How to break tousands of apps out there)

From: Date: Sat, 26 Nov 2005 16:11:49 +0000
Subject: Re: Re: PHP 5.1 (Or How to break tousands of apps out there)
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  Groups: php.internals php.internals 
Request: Send a blank email to internals+get-20567@lists.php.net to get a copy of this message
Hi Chris, Christian Schneider wrote:
From Jessie's statements I was assuming that ONLY in the ternary case you would need whitespaces/parens to disambiguate the expression. That would break way less PHP scripts than, say, a core Date class ;-)
Yes, this is true, but still, I wouldn't be surprised if many people use code such as "$x = $y?CONSTANT1:CONSTANT2;" right now, so by introducing this change, which should have absolutely no BC issues at all, you may potentially break scripts, which is something I'd rather not do. I might have a solution for this though, just give me some time to implement. For now, we can forget about namespace constants (they're not critical, anyways). Regards, Jessie

« previous php.internals (#20567) next »