Re: Remove alternative PHP tags

[email protected] (Christoph Becker)
Newsgroups php.internals
Message-ID <[email protected]>
Nikita Popov wrote:

> I've created a small RFC proposing the removal of the alternative PHP
> opening/closing tags:
> 
>     https://wiki.php.net/rfc/remove_alternative_php_tags
> 
> It removes <% and <script language=php> and the other variations of asp and
> script tags.

The RFC states:

| The alternative PHP tags have never gained any significant degree of
| usage. Their usage has been discouraged since forever.

Unfortunately, it seems that the PHP manual doesn't mention that all
these PHP tags are discouraged.
<http://php.net/manual/en/language.basic-syntax.phpmode.php> only mentions:

| As such, while some people find short tags and ASP style tags
| convenient, they are less portable, and generally not recommended.

I wonder if there are any faithful stats regarding the usage of the
alternative PHP tags.  I have never seen them in use (I have not even
been aware of the <script ...> tags), but that doesn't mean much.

-- 
Christoph M. Becker
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.