Re: Deprecate short_open_tag ini directive? PHP internals <internals@lists.php.net>
| From: | G. P. B. | Date: | Sat, 16 Mar 2019 03:05:16 +0000 |
| Subject: | Re: Deprecate short_open_tag ini directive? PHP internals <internals@lists.php.net> | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104767@lists.php.net to get a copy of this message | ||
On Sat, 16 Mar 2019 at 03:44, Kenneth Ellis McCall <xellisx@gmail.com>
wrote:
> G. P. B. wrote:
> > currently going through the PHP doc to remove mentions of PHP 4
> > and stumbled upon the short_open_tag ini directive [1] which only affects
> > the availability of
<? tags as
> > <?=is always available as of PHP 5.4.
> > From my understanding, the <? tag is not available
> > without the
> directive,
> > so maybe we should deprecate PHP's short tag altogether?
>
> I would like to see that. "Question mark equals what?".
>
> 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. >:{)>
As I don't know how to email I already sent a private response which
basically states
that the <?= is equivalent to <?php echo as shown on the note on the
ini setting:
https://secure.php.net/manual/en/ini.core.php#ini.short-open-tag
(thinking of it this feature maybe could be better documented)
Also I could write an RFC for the deprecation as it is controversial but as
I said
before I would need someone to grant me RFC karma to my PHP.net account
girgias
Best regards
George P. Banyard