Re: Consider only ignoring newlines for final ?> in a file
| From: | Andrea Faulds | Date: | Thu, 07 Sep 2017 14:23:01 +0000 |
| Subject: | Re: Consider only ignoring newlines for final ?> in a file | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100446@lists.php.net to get a copy of this message | ||
Hi,
Michael Morris wrote:
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 FauldsWould 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.