> Le 8 juin 2022 à 05:34, Sara Golemon <poll...@php.net> a écrit : > > > <?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. > No, because the user’s preferred mode is not a global one, it is a local one. You do not want to keep newlines in the following situation: ``` * line 1 <?php if ($foo): ?> * line 2 * line 3 <?php endif; ?> * line 4 ``` With a global switch, not only you have failed to solve the real problem (doing the Right Thing with newlines), but also you have created another one (looking at the top of the file in order to understand the code). You have the worst of both world. —Claude -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php
- Re: [PHP-DEV] Adding new closing tag =?> for keeping tr... David Gebler
- Re: [PHP-DEV] Adding new closing tag =?> for keepi... shinji igarashi
- Re: [PHP-DEV] Adding new closing tag =?> for keeping tr... Mark Baker
- Re: [PHP-DEV] Adding new closing tag =?> for keepi... shinji igarashi
- [PHP-DEV] Re: Adding new closing tag =?> for keeping tr... shinji igarashi
- Re: [PHP-DEV] Re: Adding new closing tag =?> for k... Robert Landers
- Re: [PHP-DEV] Adding new closing tag =?> for k... Craig Francis
- Re: [PHP-DEV] Re: Adding new closing tag =?> f... Sara Golemon
- Re: [PHP-DEV] Adding new closing tag =?> ... CHU Zhaowei
- Re: [PHP-DEV] Adding new closing tag =?&g... Marco Pivetta
- Re: [PHP-DEV] Adding new closing tag =?> f... Claude Pache
- Re: [PHP-DEV] Adding new closing tag =?&g... Chase Peeler
- Re: [PHP-DEV] Adding new closing tag... Guilliam Xavier
- Re: [PHP-DEV] Re: Adding new closing tag =?&g... shinji igarashi
- Re: [PHP-DEV] Re: Adding new closing tag ... Peter Kokot
- Re: [PHP-DEV] Re: Adding new closing tag =?> f... shinji igarashi
- Re: [PHP-DEV] Re: Adding new closing tag =?> for k... Guilliam Xavier
- Re: [PHP-DEV] Re: Adding new closing tag =?> f... shinji igarashi