Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43283 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16450 invoked from network); 9 Mar 2009 23:30:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2009 23:30:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain realplain.com from 209.235.152.149 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.235.152.149 mail959c35.nsolutionszone.com Linux 2.5 (sometimes 2.4) (4) Received: from [209.235.152.149] ([209.235.152.149:35266] helo=mail959c35.nsolutionszone.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/72-30036-786A5B94 for ; Mon, 09 Mar 2009 18:30:16 -0500 X-POP-User: wilmascam.centurytel.net Received: from pc1 (72-161-148-24.dyn.centurytel.net [72.161.148.24]) by mail959c35.nsolutionszone.com (8.13.6/8.13.1) with SMTP id n29NU91I004151; Mon, 9 Mar 2009 23:30:11 GMT Message-ID: <033E05F2D7264057AEE4FCFFD7E827AE@pc1> To: "PHP Internals List" , "shire" , "Lukas Kahwe Smith" References: <49B57F4F.9080901@tekrat.com> Date: Mon, 9 Mar 2009 18:30:09 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Subject: Re: [PHP-DEV] 5.3 items From: php_lists@realplain.com ("Matt Wilmas") Hi Brian, ----- Original Message ----- From: "shire" Sent: Monday, March 09, 2009 > > Hey Lukas, > > Just a heads up that I should have a fix for this soonish, just running > some more tests to make sure everything works as expected (I assume nobody > else has started work on this): > > 9. tokenizer misses last single-line comment > (http://bugs.php.net/bug.php?id=46817) I was going to take care of that one, as I mentioned in a previous message, though it's been awhile since I've been delayed much longer with stuff here. :-( (Nothing set up for building PHP on this system yet; hope to in the next several hours finally, and do some things!) As far as I know there's still the other comment-related issue where no Warning is giving about "Unterminated comment ..." for unclosed /* ... It's all of course related to the fundamental re2c issue, for now, where when the scanned input ends while a variable length part of a rule is being matched, it just aborts ("return 0;") in YYFILL(). And that applies to the case Lukas gave in the bug report: WHITESPACE pattern is variable length. The comment issue just happens to be a more obvious thing that was noticed, and it doesn't affect actual correct code that ends with a fixed-length ";" or "?>" Some other bits that won't be returned if at the end of a file are T_LNUMBER, T_DNUMBER, T_STRING, T_VARIABLE, "The last part in unclosed double-quotes or backticks, 'An unclosed single quoted string, and so on, likely resulting in a different parse error than previous versions. T_INLINE_HTML isn't affected by this because it's matched with a manual scan, rather than an re2c pattern. The manual scan may well have been used to work around re2c...? :-) - Matt