Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67957 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71706 invoked from network); 27 Jun 2013 15:08:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2013 15:08:50 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.50 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.50 mail-oa0-f50.google.com Received: from [209.85.219.50] ([209.85.219.50:61886] helo=mail-oa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/C7-34034-0855CC15 for ; Thu, 27 Jun 2013 11:08:49 -0400 Received: by mail-oa0-f50.google.com with SMTP id k7so979595oag.23 for ; Thu, 27 Jun 2013 08:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=u8ZAqMJWgEYmQt3VmpS+yH07sSjbvGNSTWF0G+o1Eh0=; b=mfQ48KJ7J+1lrAAMLBnlZSOqlQcYsjm5jeYLnTkoh56lfqzk8rxKD5jQT0y4OI1tpt GTLbk63V2EwbRXBfcp0otrCRo3pFNZEFU2/4R/cRXICl4YLK/9NEjHoatSpMbzpZfxx/ AJ3ccfCPZ+LtTj/qRA+fOub80jOZrj53mO6FRJePbbzXCxGxQbi5YLNZakQfDnh4LewR HT7kP+G4OQkOecbCLrZDXumf++iMQZW1O7QECD9pMDhDCsYmCwLVYFKAsHi236OYH//V 3xfsp/ixUVgXAgsKmdtWend3UrtolghdBRDm29vDoyAU+h1pOesVkHc5lyC5MFWaYgOx qFqw== MIME-Version: 1.0 X-Received: by 10.60.123.112 with SMTP id lz16mr3068469oeb.88.1372345725589; Thu, 27 Jun 2013 08:08:45 -0700 (PDT) Received: by 10.182.89.170 with HTTP; Thu, 27 Jun 2013 08:08:45 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 Jun 2013 17:08:45 +0200 Message-ID: To: Florin Patan Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b5d4f2e7b9f1e04e024234d Subject: Re: [PHP-DEV] Bug 52355 From: nikita.ppv@gmail.com (Nikita Popov) --047d7b5d4f2e7b9f1e04e024234d Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 27, 2013 at 2:42 PM, Florin Patan wrote: > Hello, > > > I'd like to start working on a bug, > https://bugs.php.net/bug.php?id=52355 but I'm not sure where to start > investigating exactly. > I've compared the 5.2.2 and 5.2.3 changes and there's nothing that > jumps into my eyes. > Could I get some pointers on how to start working on debugging this > and how to eventually fix it? > Also, while I'll fix this I plan to write an article about starting > from scratch and document every step in order to identify where the > bug is located and how to test/fix it so that others could use this > information. > Thanks. > Here is the implementation of the unary minus operator: http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_language_parser.y#776 As you can see -a is translated to 0 - a. In this particular case -0 is translated to 0 - 0, which is 0, not -0. Hope this helps, Nikita --047d7b5d4f2e7b9f1e04e024234d--