Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28834 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71505 invoked by uid 1010); 14 Apr 2007 18:51:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71490 invoked from network); 14 Apr 2007 18:51:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2007 18:51:45 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 85.214.94.56 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Received: from [85.214.94.56] ([85.214.94.56:40608] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/D2-34376-FB221264 for ; Sat, 14 Apr 2007 14:51:44 -0400 Received: from baumbart.mbo (dslb-084-063-008-086.pools.arcor-ip.net [84.63.8.86]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 1240E1B3606; Sat, 14 Apr 2007 20:51:41 +0200 (CEST) Date: Sat, 14 Apr 2007 20:52:11 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <217557848.20070414205211@marcus-boerger.de> To: Edin Kadribasic CC: Guilherme Blanco , Stut , Bart de Boer , , Tijnema ! , , Chad Daelhousen , Ron Korving In-Reply-To: <612DC248-6238-4796-AEF4-3208EB0BAAEF@krug.dk> References: <461E894C.104@zend.com> <461F7449.7060003@herballure.com> <37936.216.230.84.67.1176500697.squirrel@www.l-i-e.com> <46209A3F.8040701@mediawave.nl> <4620C93F.6080709@gmail.com> <262916757.20070414180726@marcus-boerger.de> <4210606331.20070414191706@marcus-boerger.de> <612DC248-6238-4796-AEF4-3208EB0BAAEF@krug.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] dropping asp_tags in HEAD From: helly@php.net (Marcus Boerger) Hello Edin, if I care about generating PHP using XML tools it suddenly matters a lot. best regards marcus Saturday, April 14, 2007, 7:51:43 PM, you wrote: > Hello Marcus, > I'm afraid you got it backwards. PHP source does not have to comply > with XML, or for that matter any other spec. The result of the PHP > code execution, should the desired output be XML, would of course > have to be. > So what the XML specification say is irrelevant for this discussion. > The problem that I was referring to was that PHP will not be able to > parse XML if you have short_tags enabled. > Edin > On Apr 14, 2007, at 7:17 PM, Marcus Boerger wrote: >> Hello Guilherme, >> >> if you would read the XML specs more carefulyl you'd find out >> that they >> forbid stuff like > >> 2.6 Processing Instructions >> >> [3] S ::= (#x20 | #x9 | #xD | #xA)+ >> [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | >> CombiningChar | Extender >> [5] Name ::= (Letter | '_' | ':') (NameChar)* >> >> [16] PI ::= '' >> 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 >> >> Saturday, April 14, 2007, 6:54:13 PM, you wrote: >> >>> This sounds handy. >> >>> At least it's possible to use inside XML documents and are easy to >>> use as > >>> The topic discussion is about ASP tags. IMHO, they are useless and >>> just contribute to programmers write non-standards code. They should >>> be dropped. >> >>> On the other hand, I usually don't like short tags because of XML >>> compliant code. I have them disabled in all environments I develop. >>> But I still believe that a quick way to write content, without >>> messing >>> XML documents is a great feature. So, if you plan to support >>> something >>> like this, I think it's a nice addiction to PHP, as long as it do not >>> stay in the short tags scope. >> >>> Personally I use a "e" function to do the task. So... I write this: >>> that is shorter thans echo. But >> quickier and simpler than my approach. =) >> >> >>> Best regards, >> >>> On 4/14/07, Marcus Boerger wrote: >>>> Hello Guilherme, >>>> >>>> ">>> echo". >>>> >>>> best regards >>>> marcus >>>> >>>> Saturday, April 14, 2007, 6:01:37 PM, you wrote: >>>> >>>>> If you plan to go far and remove the >>>> include >>>>> a into PHP. >>>> >>>> >>>>> Best regards, >>>> >>>>> On 4/14/07, Stut wrote: >>>>>> Bart de Boer wrote: >>>>>>> I think ASP tags should go too... Simply because it's not >>>>>>> standards >>>>>>> compliant and I think it's good if people are forced to make nice >>>>>>> standards compliant documents... I'd even go so far as to >>>>>>> favor dropping >>>>>>> short tags too... >>>>>>> >>>>>>> \n"; ?> >>>>>>> >>>>>>> What a mess!... >>>>>> >>>>>> I agree, but I do like the >>>>> see short >>>>>> tags dropped but retain support for >>>>> lot >>>>>> easier to read, i.e. against . >>>>>> >>>>>> -Stut >>>>>> >>>> >>>> >>>> >>>> >>>> >>>> Best regards, >>>> Marcus >>>> >>>> >> >> Best regards, >> Marcus >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> Best regards, Marcus