Re: Adding new closing tag =?> for keeping trailing newline
| From: | Marco Pivetta | Date: | Wed, 08 Jun 2022 07:07:53 +0000 |
| Subject: | Re: Adding new closing tag =?> for keeping trailing newline | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-117872@lists.php.net to get a copy of this message | ||
On Wed, 8 Jun 2022, 08:15 CHU Zhaowei, <me@jhdxr.com> wrote:
> > <?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.)
>
That would be a top-of-file
declare, not a runtime configuration.
>