Re: Re: Scalar Type Declaration Syntax Weirdness

From: Date: Tue, 24 Nov 2015 17:50:13 +0000
Subject: Re: Re: Scalar Type Declaration Syntax Weirdness
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-89391@lists.php.net to get a copy of this message
Hi Stas, Stanislav Malyshev wrote:
Hi!
It can't wait for 7.0.1, because banning this would be a backwards-compatibility break with 7.0.0. We have to fix it in 7.0.0 or not fix it ever.
In theory, yes. In practice, if somebody starts using 7.0.0 and immediately jumps to using \int, I don't feel too bad for breaking that code. We can put a note in release notes for this is needed. But the risk of changing syntax parts on the brink of GA IMHO is much larger than the risk of somebody using \int in 7.0.0 and getting breakage in 7.0.1. Especially if it's clearly described as a bug we intend to fix.
There's no syntax change. We'd be adding another fatal error to zend_compile.c triggered by a flag on the token. No messing around with the parser. I understand your concern about the risk, but it's the kind of change that wouldn't break anything without it being tremendously obvious. Thanks. -- Andrea Faulds http://ajf.me/

« previous php.internals (#89391) next »