Re: Deprecate short_open_tag ini directive? PHP internals <internals@lists.php.net>
| From: | Peter Kokot | Date: | Sat, 16 Mar 2019 03:19:04 +0000 |
| Subject: | Re: Deprecate short_open_tag ini directive? PHP internals <internals@lists.php.net> | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104768@lists.php.net to get a copy of this message | ||
Hello,
On Sat, 16 Mar 2019 at 03:57, Morgan Breden <morganbreden@gmail.com> wrote:
>
> >If you want to go further, dropping the PHP tag altogether would be nice,
> since it would prevent context switching between PHP/HTML/JS/whatever.
> >That would force Wordpress to update their whole
> code base. >:{)>
>
> I wholeheartedly support this initiative but I do not see it going through
> without a lot of resistance. Using PHP itself as a templating engine is
> part of what makes it so "newbie friendly".
I think using PHP tags for templates and option to write code without
opening tag might go through also. After all, text files are simple.
Something on this was already being done and probably also discussed:
https://wiki.php.net/rfc/nophptags
On the other hand, shebangs will still be present in CLI scripts. For example:
#!/usr/bin/env php
--
Peter Kokot