Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79502 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94818 invoked from network); 9 Dec 2014 15:27:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2014 15:27:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:65500] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/F0-23416-CD417845 for ; Tue, 09 Dec 2014 10:27:25 -0500 Received: by mail-wi0-f170.google.com with SMTP id bs8so10490251wib.1 for ; Tue, 09 Dec 2014 07:27:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Eeo+5vnomYR4gLYyXsQ0NOoo/LaRPCJjAiVZzKpzqzI=; b=hb70JuVwZrAZd8d4fYoQ5QXo+OuUVycT3ErOii1klJWJUl5tmjSH/C1PYRqTBA50Zt hASujxEO0iQxIF0Nw6qFLAi/nyuq+85ZkiO2BNVgfR2YP2QfUftbzp6CwgyaqLF0IW4Q /nTuleGy8F4ivb2ip/OzU8v5P0vQ/jyvtCEXsnuR2Co/m/HJaUZVg29FlmKUvVEJZdNj 1CWOq6AQqyV0VeAtMk3dDqBMnwf0er7/WZ9YkUmmomkoAIF8FQSSytB+SvhgLMa9LNzO t5kgLVhoAgekD9QoGp2k5pxxnSv05WsommIuCbasRufzkp2g95ZVNINNcCaT+jIi5Gp/ A6Qg== X-Received: by 10.194.52.37 with SMTP id q5mr5779705wjo.39.1418138838908; Tue, 09 Dec 2014 07:27:18 -0800 (PST) Received: from [192.168.0.148] ([62.189.198.114]) by mx.google.com with ESMTPSA id j2sm2152788wjs.28.2014.12.09.07.27.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Dec 2014 07:27:18 -0800 (PST) Message-ID: <548714D0.2010003@gmail.com> Date: Tue, 09 Dec 2014 15:27:12 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "internals@lists.php.net" References: <24634FCA-EB3E-4805-A6D6-A1587A56C141@ajf.me> <42CB63B7-BB58-4A48-A738-08EF73D4395B@ajf.me> <5486F7BF.4070907@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [VOTE][RFC] ZPP Failure on Overflow From: rowan.collins@gmail.com (Rowan Collins) Andrea Faulds wrote on 09/12/2014 14:10: >> On 9 Dec 2014, at 13:23, Rowan Collins wrote: >> >> Xinchen Hui wrote on 09/12/2014 03:39: >>> but I suggest change it to "expects parameter 1 to be long, >>> double(which is beyond long range) given in %s on line %d" >> Note that in master, the messages have been changed to (correctly) not mention the C types, only the PHP ones, so it would be more like "expects parameter 1 to be integer, float (which is beyond integer range) given". > They... have? When did this happen? It's something I was very much in favour of and wanted to do myself, but I was unaware this had recently changed. Does that mean I'll have to redo the patch for this RFC? :( > Oh; maybe not. I'm confused now. There's a commit making the change, I think in amongst the "64-bit" work: https://github.com/php/php-src/commit/63ea29a2067ce06e20dda861480d91624389f0f3 But then the current master seems to be back using the old wording (random example): https://github.com/php/php-src/blob/master/ext/curl/tests/curl_setopt_error.phpt (Also, lxr.php.net doesn't show the PHPT files at all? http://lxr.php.net/xref/PHP_TRUNK/ext/curl/tests/) I actually prepared a PR a while ago to change everything, but master was a bit of a moving target at the time, so it probably needs a bit of work to rebase: https://github.com/php/php-src/pull/769 I didn't bother because I thought someone had beaten me to it, but maybe I should revisit it after all? -- Rowan Collins [IMSoP]