On 4/14/07, Marcus Boerger <[EMAIL PROTECTED]> wrote:
Hello Guilherme,
if you would read the XML specs more carefulyl you'd find out that they
forbid stuff like <?= or even <?php=. consult the follwing excerpt:
2.6 Processing Instructions
[3] S ::= (#x20 | #x9 | #xD | #xA)+
[4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar |
Extender
[5] Name ::= (Letter | '_' | ':') (NameChar)*
[16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'
[17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
[84] Letter ::= BaseChar | Ideographic
[85] BaseChar ::= [#x0041-#x005A] | [#x0061-#x007A] | [#x00C0-#x00D6] |
[#x00D8-#x00F6] | [#x00F8-#x00FF] | .....
[86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029]
[87] CombiningChar ::= [#x0300-#x0345] | .....
[88] Digit ::= [#x0030-#x0039] | [#x0660-#x0669] | .....
[89] Extender ::= #x00B7 | #x02D0 | .....
"=" == #x003D
My bad, sorry. I felt happy with the possibility of <?echo $something
?> that I didn't pay too much attention on what I've written.
On 4/14/07, Asbjørn Sloth Tønnesen <[EMAIL PROTECTED]> wrote:
I think that short_tags should be removed because of XML compatibility
and asp_tags to avoid PHP code to be confused as ASP, by newbies trying
to learn PHP or ASP. What if ASP Classic in Longhorn server will support
<? or <?php as opening tag, would that just be great?
A gentle way to drop support for short_tags and asp_tags, could be to
drop support for them in php.ini, but still allow the few people using
them to enable it in .htaccess or similar, or force people to recompile
PHP to add support for it. Ok, now I am being mean :)
That would be perfect!
But... there will be a lot of people that will start some flaming
emails about the removal of these support. As long it became well
documented, there will be not problem.
I liked the idea of <?echo.
Best regards,
--
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
São Carlos - SP/Brazil