Hi Stas,

In 99.999% of cases you'd get parse error on first <?xml, i.e. very first line of the file. I have yet to see any other context where short tags wouldn't work. So I don't see - what exactly would "not work or misbehave" without giving an error? Can you produce any example of application or other real code that would silently misbehave with short tags on but behave OK with short tags off?

I had at least five PHP/XML applications that did just that during the PHP 5 coding contest at Zend back in 5.0 days... Zeev asked me at the time to explain it more fully, and I sincerely regret never having made the time to look into it properly.

And no I don't still have those applications on my laptop. Sorry. But it's as a result of working on that contest that I'm against short-tags full stop - I still think they should've been deprecated from 5.0 on.

Not good evidence I know, but that's my tuppence-worth on the subject.

- Steph

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to