Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45094 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92730 invoked from network); 26 Jul 2009 09:13:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2009 09:13:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=gwynne@darkrainfall.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=gwynne@darkrainfall.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain darkrainfall.org from 208.97.132.207 cause and error) X-PHP-List-Original-Sender: gwynne@darkrainfall.org X-Host-Fingerprint: 208.97.132.207 caiajhbdccah.dreamhost.com Received: from [208.97.132.207] ([208.97.132.207:54155] helo=homiemail-a3.g.dreamhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/82-08024-C1E1C6A4 for ; Sun, 26 Jul 2009 05:13:02 -0400 Received: from Moonstar.home (pool-71-174-84-161.bstnma.fios.verizon.net [71.174.84.161]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTP id 8DFD2C5AA6 for ; Sun, 26 Jul 2009 02:12:56 -0700 (PDT) Message-ID: <0DE5B38F-CBF8-4458-AC2E-CBBE1641CB45@darkrainfall.org> To: PHP Developers Mailing List Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Sun, 26 Jul 2009 05:12:54 -0400 X-Mailer: Apple Mail (2.935.3) Subject: Another tiny syntax patch From: gwynne@darkrainfall.org (Gwynne Raskind) 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 "" 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 @@ } +"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; +} + + "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