Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98810 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92570 invoked from network); 15 Apr 2017 21:38:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Apr 2017 21:38:57 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.180 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.180 mail-pf0-f180.google.com Received: from [209.85.192.180] ([209.85.192.180:33671] helo=mail-pf0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/B2-61625-1F292F85 for ; Sat, 15 Apr 2017 17:38:57 -0400 Received: by mail-pf0-f180.google.com with SMTP id s16so52496302pfs.0 for ; Sat, 15 Apr 2017 14:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=vXiRljfrSl0ABdPLc318VoKsVY2oTaTa/qBN+2HbKTs=; b=W3QnuhX2oRk6pHLX308YGJtYB3KNZGlF7pFJYLt3q1GhRxBN2YsvVKrvAOt47oqP+k 7Lg/SgbSp6vE6Zz+rAal9nyVP4t5Ti2XzJnUWYc4YzjDtIEtdk71V6DJfm9/W9DcUm9P hp+n0wwmrj9s47OQE6ulstn8ZPdqi9yXaqPX2TX84kjwM1B1Ntg+lD+5hoVyrtJMNWjB bUwDamNM0xX993v+r0J2owBipLEpUEe9duMAiqHe8BrDaTlhId3Cl9iY9YYHR+I7PpZv tYKbMpcXrP4QWRfpExpFONmYeXb+9RxSneP9JefNbOY72EtJ2AShZ+BYQrD25ccfp+Gl eEMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=vXiRljfrSl0ABdPLc318VoKsVY2oTaTa/qBN+2HbKTs=; b=IPHud3OwbdFXlVZL2EoGVfETHSoqB8sKrwgIBUBGB8Nn+l60mG1V6F/lVIXRXFVu5g ugYlUMMScohf013DS1ssLjNGNptg7uzaC5zk++Y9l6i1kTMrR67Osdt1MoPVA8dGMhgB CRE5Nhs3R5X1hH8EoyROxQZug27AOGk9EgnU5j8VX44lmdKxEARh64elQcVGYZfOcu8/ vyTgqdOVpIAmuuUG74ZcKJh/aIs2stZidIQrer8/nTUnFD1f7z3eqcG++Z/SUZcb3Nyf NKUiBBHHOZj6rh03ysG+n7E/khv7AGWNON8Zf5PV+qj2gkdGhE9EHwArR+J4by4OqmpH d4hA== X-Gm-Message-State: AN3rC/6eWEHsm44QWgMDJdL7aV/5q/VaWRH5cPqbsobicGToBHQY+TDC tuIZWIYqf9X17Q== X-Received: by 10.84.214.16 with SMTP id h16mr5799033pli.96.1492292334455; Sat, 15 Apr 2017 14:38:54 -0700 (PDT) Received: from Stas-Air-4396.local (108-233-206-104.lightspeed.sntcca.sbcglobal.net. [108.233.206.104]) by smtp.gmail.com with ESMTPSA id i15sm10004160pfj.51.2017.04.15.14.38.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Apr 2017 14:38:53 -0700 (PDT) To: Nikita Popov , Derick Rethans References: Cc: PHP Developers Mailing List Message-ID: <1c651049-c92e-80c3-39c7-684ddbdc5f01@gmail.com> Date: Sat, 15 Apr 2017 14:38:52 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Inconsistency in line numbers. From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > behavior I wasn't aware of: https://3v4l.org/6fSRb In backtraces the call > is located on the line of it's last argument (in PHP 5.6 the line of the > closing ")"). Wouldn't it make more sense to use the starting line of the > call? That is, use the same lineno for INIT_FCALL and DO_FCALL? Since the call happens after evaluating the arguments, if you debug in IDE and go through the arguments, it'll make IDE prompt jump back sometimes. Not sure it's a good. Logically, it looks like first argument eval happens, then call happens, so linking it to ")" makes sense (if you read it left to right, that's kind of the point where the actual call happens). -- Stas Malyshev smalyshev@gmail.com