Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29508 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34725 invoked by uid 1010); 18 May 2007 01:57:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34710 invoked from network); 18 May 2007 01:57:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2007 01:57:16 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:21718] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/D9-10325-AF70D464 for ; Thu, 17 May 2007 21:57:15 -0400 Received: from [127.0.0.1] ([192.168.16.109]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 17 May 2007 18:57:11 -0700 Message-ID: <464D07F4.4040509@zend.com> Date: Thu, 17 May 2007 18:57:08 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: 'PHP Internals' Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 May 2007 01:57:11.0758 (UTC) FILETIME=[D988DEE0:01C798EF] Subject: 1/-2*5 (bug 41401) From: stas@zend.com (Stanislav Malyshev) Looks like we have a precedence bug in the parser rules there. Fortunately it's quite easy to fix, for example writing the rules as: | '+' expr %prec T_INC | '-' expr %prec T_INC seems to work. Any reason not to? -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/