Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79470 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48974 invoked from network); 8 Dec 2014 11:15:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2014 11:15:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:39343] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/80-45136-04885845 for ; Mon, 08 Dec 2014 06:15:14 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id BD471B00085; Mon, 8 Dec 2014 06:15:09 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fcVEQSL18CL0; Mon, 8 Dec 2014 06:15:09 -0500 (EST) Received: from [137.50.174.243] (oa-edu-174-243.wireless.abdn.ac.uk [137.50.174.243]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 19A80B00058; Mon, 8 Dec 2014 06:15:08 -0500 (EST) References: <24634FCA-EB3E-4805-A6D6-A1587A56C141@ajf.me> <42CB63B7-BB58-4A48-A738-08EF73D4395B@ajf.me> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: Cc: internals X-Mailer: iPhone Mail (12B435) Date: Mon, 8 Dec 2014 11:15:06 +0000 To: Xinchen Hui Subject: Re: [PHP-DEV] Re: [VOTE][RFC] ZPP Failure on Overflow From: ajf@ajf.me (Andrea Faulds) > On 8 Dec 2014, at 08:22, Xinchen Hui wrote: > the current warning message is :" expects parameter 1 to be long, > double given in %s on line %d" >=20 > but maybe it should be something like: "expects parameter 1 to be > long, double(which is beyond long range) given in %s on line %d"? >=20 > since it's not the fault of double self, right? Hi Xinchen, I had thought of doing that, although for all other failures we also don't g= ive special error messages. I don't have the time to go through and update e= very single test again, though. I initially did have an error message that s= howed the range that the float needs to have, but this was a problem because= it means the error message might vary by platform (pain to test) -- Andrea Faulds http://ajf.me/=