Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79489 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46196 invoked from network); 9 Dec 2014 03:40:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2014 03:40:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:63254] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/E0-39368-91F66845 for ; Mon, 08 Dec 2014 22:40:09 -0500 Received: by mail-la0-f52.google.com with SMTP id hs14so4979352lab.39 for ; Mon, 08 Dec 2014 19:40:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=QKuJ2ipiM9ZXi7neZrn+a2oqX9sGMyXuJ8nrhDvM3Lk=; b=f3E0F1jooHB2ekoinKTmpQYB+fn6k+ZBbj/wvmeX5AsxfWsckC6NNUAb9QlVmdEogV DGFFU5zEMvw2FenMkmrHrOk61qRdaP90OhdFgpl3+9wjPLETQdn80XEGsv7fkFnf8phM PnwjQorf3iRLah8UzJRYEHsxuYGRcWZsR9eMv8xOx15Wtl8HfnvIQeEgBnN6yNMK5BUu l6vUx63Ng/VkORIICTb8NltO/5R7KwkcLDa+66HhFkFqSFY5LDxSQ4DnjF1u6J1H1BrV QL6vg/LYfOkJqapay2eOwHb0dpA+IQaa12xvNad4DWsPEcKujfPQ8AYkM7xIbEaijwqd QQhg== X-Gm-Message-State: ALoCoQmyMMALtN9adZ1ODPMV4egpkvaH/N7V79CRcLvyTi8IoL3Hmdrv0ZlnhYuUSb/9yA0MOvL76Ud1m1+iMcgribgwz6P/ojfPGayCgLhu1QbfvSTiVcq2iRVjOdGJPjobPYFqALIIhCjK3G+ImD2jja7JFjW8DQ== X-Received: by 10.112.93.231 with SMTP id cx7mr19102000lbb.89.1418096405963; Mon, 08 Dec 2014 19:40:05 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPSA id f5sm689laf.9.2014.12.08.19.40.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 19:40:04 -0800 (PST) Received: by mail-lb0-f177.google.com with SMTP id b6so4698121lbj.22 for ; Mon, 08 Dec 2014 19:40:04 -0800 (PST) X-Received: by 10.152.2.41 with SMTP id 9mr19092128lar.47.1418096404040; Mon, 08 Dec 2014 19:40:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.64.176 with HTTP; Mon, 8 Dec 2014 19:39:43 -0800 (PST) In-Reply-To: References: <24634FCA-EB3E-4805-A6D6-A1587A56C141@ajf.me> <42CB63B7-BB58-4A48-A738-08EF73D4395B@ajf.me> Date: Tue, 9 Dec 2014 11:39:43 +0800 Message-ID: To: Andrea Faulds Cc: internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: [VOTE][RFC] ZPP Failure on Overflow From: laruence@php.net (Xinchen Hui) Hey: On Mon, Dec 8, 2014 at 7:15 PM, Andrea Faulds wrote: > >> 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" >> >> 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"? >> >> 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 give special error messages. I don't have the time to go through and upd= ate every single test again, though. I initially did have an error message = that showed 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) that will confuse people, why 12.2 is okey (it's also a double value). anyway, I am not a native english speaker, not sure what is the most proper warning message. but I suggest change it to "expects parameter 1 to be long, double(which is beyond long range) given in %s on line %d" what do you think? thanks > > -- > Andrea Faulds > http://ajf.me/ --=20 Xinchen Hui @Laruence http://www.laruence.com/