Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45095 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94080 invoked from network); 26 Jul 2009 09:17:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2009 09:17:18 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.216.194 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.194 mail-px0-f194.google.com Received: from [209.85.216.194] ([209.85.216.194:54791] helo=mail-px0-f194.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/C2-08024-D1F1C6A4 for ; Sun, 26 Jul 2009 05:17:18 -0400 Received: by pxi32 with SMTP id 32so1150698pxi.29 for ; Sun, 26 Jul 2009 02:17:15 -0700 (PDT) Received: by 10.114.178.18 with SMTP id a18mr7741636waf.198.1248599835418; Sun, 26 Jul 2009 02:17:15 -0700 (PDT) Received: from ?216.145.54.15? (socks3.corp.yahoo.com [216.145.54.15]) by mx.google.com with ESMTPS id m34sm10774758waf.22.2009.07.26.02.17.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Jul 2009 02:17:14 -0700 (PDT) Message-ID: <4A6C1F18.9040805@lerdorf.com> Date: Sun, 26 Jul 2009 02:17:12 -0700 User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Gwynne Raskind CC: PHP Developers Mailing List References: <0DE5B38F-CBF8-4458-AC2E-CBBE1641CB45@darkrainfall.org> In-Reply-To: <0DE5B38F-CBF8-4458-AC2E-CBBE1641CB45@darkrainfall.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Another tiny syntax patch From: rasmus@lerdorf.com (Rasmus Lerdorf) We have talked about this before, and the conclusion was that if we are going to have an invalid PI, we might as well make it For the sake of the heck of it, I'm gonna offer up this tiny patch I'm > using in one of my projects. I don't really care if it gets included in > anything or not, just thought it might interest someone. > > Effect: Adds a " works without the use of short_tags. > Caveat: The formation " 2.6 of [1] defines a PITarget as a Name, which in turn is made up of > NameChars (section 2.3), which do not include the "=" character. > Advantage: Saves five characters of typing. "" versus > "". > > Just thought I'd throw it out there. > > Index: Zend/zend_language_scanner.l > =================================================================== > --- Zend/zend_language_scanner.l (revision 286353) > +++ Zend/zend_language_scanner.l (working copy) > @@ -1537,6 +1588,15 @@ > } > > > +" + zendlval->value.str.val = yytext; /* no copying - intentional */ > + zendlval->value.str.len = yyleng; > + zendlval->type = IS_STRING; > + BEGIN(ST_IN_SCRIPTING); > + return T_OPEN_TAG_WITH_ECHO; > +} > + > + > " zendlval->value.str.val = yytext; /* no copying - intentional */ > zendlval->value.str.len = yyleng; > > [1] Extensible Markup Language (XML) 1.0 Fifth Edition, > http://www.w3.org/TR/2008/REC-xml-20081126/ > > -- Gwynne > >