Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36874 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6718 invoked from network); 8 Apr 2008 15:59:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Apr 2008 15:59:08 -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.235.148.23 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.235.148.23 mail13c35.nsolutionszone.com Linux 2.5 (sometimes 2.4) (4) Received: from [209.235.148.23] ([209.235.148.23:44399] helo=mail13c35.nsolutionszone.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/31-34006-A469BF74 for ; Tue, 08 Apr 2008 11:59:07 -0400 X-POP-User: wilmascam.centurytel.net Received: from pc1 (75-121-1-239.dyn.centurytel.net [75.121.1.239]) by mail13c35.nsolutionszone.com (8.13.6.20060614/8.13.1) with SMTP id m38FwmKT028086 for ; Tue, 8 Apr 2008 15:58:49 GMT Message-ID: <200804081558.m38FwmKT028086@mail13c35.nsolutionszone.com> Message-ID: <016901c89991$6f86c4f0$0201a8c0@pc1> To: Date: Tue, 8 Apr 2008 10:58:48 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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 Subject: [PATCH] Scanner fixes and tweaks From: php_lists@realplain.com ("Matt Wilmas") Hi all, First, I just realized while going through the scanner code after the re2c changes that there's a bug with heredoc handling (from my code changes last year, oops) on something like: <<{WHITESPACE}+ { /* do nothing */ goto restart; } Would lose that whitespace in highlighter, etc. or miss counting line numbers. Speaking of line numbers, I also removed the CG(comment_start_line) variable since I can't see that it's needed anywhere, and CG(zend_lineno) works for the "Unterminated comment..." warning (which isn't working right now anyway :-)). In HEAD I also tidied up the LNUM/HNUM rules which lost their tabs and Z_* macros a year ago (v1.164). http://realplain.com/php/scanner_fixes.diff http://realplain.com/php/scanner_fixes_5_3.diff - Matt