Hi,

Michael Morris wrote:


Would anyone object to me changing how PHP handles this so that only the
final ?> tag consumes its following newline, and only at the end of the
file?


Captain Obvious here. It has long been the policy of many large PHP
projects to not close the last PHP tag for this reason. This change
wouldn't affect them. It risks affecting projects without this policy, and
those tend to be older and often private.


The idea here though is not to affect code where the entire file is a <?php ?> block. If newlines are still consumed, but only for ?> at the end of the file, those files should still behave the same.

What I want to change is how it behaves in other circumstances, i.e. templating.

Thanks.
--
Andrea Faulds

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to