Ilia A. wrote:
 >> We should have warned people not to use short tags years ago.
 > What happened in the past is in the past, lets concentrate on the future.

Sure. We should.

>>The best way to go is discourage use of short tag
>>whenever possible, change default few years later, IMHO.
>>
>>Even if we never change the default,
>><?php echo "<?xml ......?>";?> works always w/o patch.
> 
> 
> Yes, that works, but what about all the people who for whatever reason make 
> their PHP parse all pages, even .html ones. On such a server if someone 
> places an XML (XHTML) document, won't they be surprised by the parse errors 
> they get. This person may not even know PHP exists and yet they would get PHP 
> errors. No amount of documentation will solve this sort of a problem and this 
> is just one example, there are more.

This is one of the reason why I think we should try to change
short_open_tag default. "<?" is reserved for XML PI (Processing
Instruction). There may be many (and/or custom) PI tags and it
may become more serious problem in the future.

We may even have XML processor that processes PHP code in XML
documents in the future. i.e. PHP interpreter is invoked from
XML processor.

Fortunately, we don't have much problem now.
I think we are better to start discourage use of short tag
more loudly instead of work around one by one.

--
Yasuo Ohgaki




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

Reply via email to