Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43680 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37945 invoked from network); 13 Apr 2009 18:45:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2009 18:45:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=dwarf@girsbrain.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dwarf@girsbrain.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain girsbrain.org from 74.125.92.25 cause and error) X-PHP-List-Original-Sender: dwarf@girsbrain.org X-Host-Fingerprint: 74.125.92.25 qw-out-2122.google.com Received: from [74.125.92.25] ([74.125.92.25:48203] helo=qw-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/86-22673-14883E94 for ; Mon, 13 Apr 2009 14:45:22 -0400 Received: by qw-out-2122.google.com with SMTP id 5so1421602qwi.59 for ; Mon, 13 Apr 2009 11:45:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.80.3 with SMTP id r3mr1757096qck.104.1239648319484; Mon, 13 Apr 2009 11:45:19 -0700 (PDT) In-Reply-To: <2dedb8a0904131124u57f2f32ei27083a289f7f18a4@mail.gmail.com> References: <49E352FD.6070008@gmail.com> <2dedb8a0904131124u57f2f32ei27083a289f7f18a4@mail.gmail.com> Date: Mon, 13 Apr 2009 14:45:18 -0400 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016364269bdbab4520467741dbe Subject: Re: [PHP-DEV] Re: Is it true that short_open_tag is deprecated in PHP 6? From: dwarf@girsbrain.org (James Logsdon) --0016364269bdbab4520467741dbe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I think that's what he meant by "escape it". I haven't used short_open_tags myself much, but as I've been exploring templating options I like it for outputting variables. James Logsdon On Mon, Apr 13, 2009 at 2:24 PM, Kalle Sommer Nielsen wrote: > 2009/4/13 Jeremy : > > Glen wrote: > >> > >> It's short, and it doesn't conflict with XML. > >> > > > > I have to say, I don't understand all the hate on short_open_tag. So > what > > if it "conflicts" with XML? PHP is not XML. If you use an XML construct > in > > your PHP, escape it. PHP can generate a lot of other languages, too -- > > should every construct from these languages be forbidden in PHP as well? > > Thats because with short_open_tags on, you need to use: > '); ?> > > to print the XML declaring, with short open tags, the xml part is > considered a piece of code, which causes a syntax error > > > > > Jeremy > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > Kalle Sommer Nielsen > kalle@php.net > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0016364269bdbab4520467741dbe--