Jannik Zschiesche wrote (on 22/07/2014):
the point Derick was trying to make is that you can’t build a scanner that automatically checks whether you rewrote this particular piece of code already or not. You can find the code pieces which match the constructs affected by the BC, but the scanner can’t decide, whether they are already fixed (= they are ok as they stand).
I thought for each ambiguous case whose behaviour would change, there is a pair of unambiguous forms (one for each interpretation) which work the same under both parsers?
If so, wouldn't it be possible to change every occurrence detected by the scanner to the appropriate unambiguous form (even if that is technically unnecessary for that particular case); then when you re-ran the scanner, it wouldn't find the same ones again?
I'm probably missing a subtlety here, though... -- Rowan Collins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php