Re: short_open_tag
| From: | Terence Kearns | Date: | Tue, 22 Oct 2002 05:33:37 +0000 |
| Subject: | Re: short_open_tag | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89873@lists.php.net to get a copy of this message | ||
Agreed.
If short tags were disabled in v5, then there would be no such need for a hack like this.
Andi Gutmans wrote:
This is definitely one thing to think about. This is exactly the reason why I was against in the beginning. I had a feeling such ambiguities could arise. Andi At 09:43 AM 10/17/2002 -0700, Rasmus Lerdorf wrote:My main worry with such a hack would be breaking a script like this: <?phpThey are _not_ the same person! On Thu, 17 Oct 2002, Zeev Suraski wrote:function xml() { echo "Hello World"; }?> ... <?xml ()?> ... Now, people generally don't put spaces between the function name and the (), but it is a BC concern since the above script works just fine today. One idea would be to only strip <?xml tags up until we see the first PHP tag. That should cover most cases, but it may be a bit too magical. -Rasmus On Thu, 17 Oct 2002, Andrei Zmievski wrote:Well, I differ with you on that. I don't think there's anything in the same class as <?xml. Zeev At 18:08 17/10/2002, Andi Gutmans wrote:I don't think we should add special hacks to the scanner. Soonwe're goingto have a zillion hacks for other XML/SGML/foobar documents. Andi At 12:17 PM 10/16/2002 -0400, Ilia A. wrote:solutions toSince the general consensus by the developers is not to remove the short_tags or even disable them. Perhaps we should consider alternategrowingthis problem. Given the buzzword popularity of XML and its slowlyto comepopularity among website designers (XHTML) this issue is likelyspecial handlingup in the future yet again. The solution I would like to offer, is a patch that addsparse datafor <?xml. Thus preventing the language parser from attempting to-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.phpinside <?xml as PHP source. Ilia-Andrei"Claiming Java is easier than C++ is like saying that K2 is shorter than Everest." -- Larry O'Brien (editor, Software Development) -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.phphttp://www.gravitonic.com/