Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37497 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62239 invoked from network); 6 May 2008 14:06:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 May 2008 14:06:24 -0000 Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain realplain.com from 209.151.69.1 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.151.69.1 liberty.vosn.net Linux 2.4/2.6 Received: from [209.151.69.1] ([209.151.69.1:40636] helo=liberty.vosn.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/57-22382-ED560284 for ; Tue, 06 May 2008 10:06:24 -0400 Received: from 75-121-89-127.dyn.centurytel.net ([75.121.89.127]:54779 helo=pc1) by liberty.vosn.net with smtp (Exim 4.68) (envelope-from ) id 1JtNnP-00008t-5u; Tue, 06 May 2008 08:05:32 -0600 Message-ID: <01e801c8af82$3ed8bd20$0201a8c0@pc1> To: , "Felipe Pena" References: <013a01c8aec5$b189d650$0201a8c0@pc1> <481F8BCD.30207@lerdorf.com> <1210034790.5744.5.camel@pena> Date: Tue, 6 May 2008 09:05:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - liberty.vosn.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - realplain.com Subject: Re: [PHP-DEV] [PATCH] Some string changes/optimizations From: php_lists@realplain.com ("Matt Wilmas") Hi Felipe, all, The patches have been updated to fix the failing nowdoc_015.phpt test. http://realplain.com/php/string_optimizations.diff http://realplain.com/php/string_optimizations_5_3.diff The problem was that after removing the ST_START_NOWDOC stuff, the NOWDOC_CHARS pattern wasn't matching on: <<<'EOT' SingleLineOfTextThatMatchesThe_LABEL_Pattern EOT; I updated NOWDOC_CHARS, I think simplifying it a bit and making it more like HEREDOC_CHARS. (And this made zend_language_scanner.c ~5K smaller.) I previously tried to change it, and it just hung PHP when scanning a nowdoc (endless loop being generated somewhere, etc.), so I left it alone. Looking into it more now, with the new pattern, re2c is messing up (endless loop) with {NOWDOC_CHARS}*{NEWLINE}+{LABEL}";"?[\n\r] And I had to change it to ({NOWDOC_CHARS}+{NEWLINE}+|{NEWLINE}+){LABEL}";"?[\n\r] Though the original should be equivalent... Well, hopefully it's all working correctly now! - Matt ----- Original Message ----- From: "Felipe Pena" Sent: Monday, May 05, 2008 > [...] > Hi Matt, the nowdoc_015.phpt fails in HEAD. > > -- > Regards, > Felipe Pena. >