Re: Adding new closing tag =?> for keeping trailing newline
| From: | CHU Zhaowei | Date: | Wed, 08 Jun 2022 06:15:29 +0000 |
| Subject: | Re: Adding new closing tag =?> for keeping trailing newline | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-117871@lists.php.net to get a copy of this message | ||
> <?php
> declare(ignore_newline_after_close_tag=false); // defaults to true, i.e
> existing behavior
> This would avoid any new syntax rules, but still provide the ability for
> php-as-template-engine to behave in the user's preferred mode.
I thought it's a consensus on internal that we should avoid such runtime configuration that can
affect code behaviour, otherwise we have a long list to check when we debug or ask for help. Yeah I
know we already have a lot, and it's a easy and straightforward solution to add a switch for
this kind of issues, but we should be careful to introduce a new one. (Personlly I was a supporter
for runtime configuration as well, but I'm not able to convince myself to ignore or defeat that
argument.)
Regards,
CHU Zhaowei