tags:

views:

461

answers:

2

For instance magic_quotes_gpc has been deprecated as of PHP 5.3 but will not be removed until PHP6. In PHP6 is short_open_tag set to be removed or deprecated or neither?

Whether it's appropriate to use short_open_tag has already been debated ad nauseam - I'm really interested in the the official stance of the PHP core developers. The PHP documentation doesn't list short_open_tag as set for removal or even as deprecated.

+3  A: 

The Jury seems to be still out on this one.

According to this entry (by Rasmus Lerdorf no less!) in the PHP internal mailing list, they are at least not removed in PHP 6.

Read through the conversation, it seems as if there are very differing opinions even among the PHP internals (provided the people posting to that list all are on that team, which I assume but don't know.)

Pekka
i don't get it why they stick so much to their legacy code...
henchman
They stick with their legacy code because it allows PHP to be one of the largest development platforms in the world, which means Zend (the company) has a larger market in which to sell its enterprise level services.
Alan Storm
There's quite a difference between magic quotes and short open tags. The former represents a failed security measure, which allows developers to naively and dangerously trust user input, while the latter is a convenience which occasionally interferes with other technologies (XML)
David Caunt
From what I can tell from googling and posting to the internals mailing list: short_open_tags are neither deprecated nor set for removal in PHP6.
pygorex1
+1  A: 

It was suppose to be removed, but it hasn't been. Considering that it's considered a bad idea, it's best to just set a standard for yourself, which is "just stop using it".

Keep in mind that the same fate happened to magic_quotes, php global vars and the eregi functions. Albeit those were removed for security and speed reasons, but when something becomes recommended not to be used, PHP has a history of removing it.

TravisO