Re: short_open_tag

From: Date: Sat, 22 Mar 2008 12:17:42 +0000
Subject: Re: short_open_tag
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-36319@lists.php.net to get a copy of this message
Hi, On Sat, Mar 22, 2008 at 1:09 PM, Lars Strojny <lars@strojny.net> wrote: > Hi Ralph, Pierre, everybody, > > Am Samstag, den 22.03.2008, 01:23 +0100 schrieb Pierre Joye: > > > On Sat, Mar 22, 2008 at 12:51 AM, Ralph Schindler <ralph@smashlabs.com> wrote: > > > > > > > Take this file: > > > > > > > > <?xml version="1.0" encoding="utf-8" ?> > > > > <foo> > > > > <? echo "bar"; ?> > > > > </foo> > > > > > > > > and run it through xmllint. > > That's exactly the point, thanks Ralph. It makes absolutely no sense > validating XML documents containing PHP instructions *before* the > instructions have been processed Read: Code validation (like in pre commit rules), is one common usage. Think about xml being XML data or HTML. Nothing prevents one to write valid (x)html in a valid xml format. And again this exact example was a proof to a *wrong* claim, it has to be extended to be applicable to a real life context. This small but obvious example is not a real life context but only (and only!) the proof that Stan's claim was wrong, period. Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#36319) next »