Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79524 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30974 invoked from network); 10 Dec 2014 16:04:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2014 16:04:44 -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.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:37166] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/10-29826-91F68845 for ; Wed, 10 Dec 2014 11:04:42 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 53C5F2400D7; Wed, 10 Dec 2014 11:04:39 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DMwR2I3sf8UM; Wed, 10 Dec 2014 11:04:39 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 8846D2400D4; Wed, 10 Dec 2014 11:04:38 -0500 (EST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <548714D0.2010003@gmail.com> Date: Wed, 10 Dec 2014 16:04:36 +0000 Cc: "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: <2C28A252-4E07-4AB9-BDEC-5BB9DD7CA8F3@ajf.me> References: <24634FCA-EB3E-4805-A6D6-A1587A56C141@ajf.me> <42CB63B7-BB58-4A48-A738-08EF73D4395B@ajf.me> <5486F7BF.4070907@gmail.com> <548714D0.2010003@gmail.com> To: Rowan Collins X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [VOTE][RFC] ZPP Failure on Overflow From: ajf@ajf.me (Andrea Faulds) > On 9 Dec 2014, at 15:27, Rowan Collins = wrote: >=20 > Andrea Faulds wrote on 09/12/2014 14:10: >>> On 9 Dec 2014, at 13:23, Rowan Collins = wrote: >>>=20 >>> 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? :( >>=20 >=20 > Oh; maybe not. I'm confused now. >=20 > There's a commit making the change, I think in amongst the "64-bit" = work: = https://github.com/php/php-src/commit/63ea29a2067ce06e20dda861480d91624389= f0f3 >=20 > 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_erro= r.phpt (Also, lxr.php.net doesn't show the PHPT files at all? = http://lxr.php.net/xref/PHP_TRUNK/ext/curl/tests/) >=20 > 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? Hi! It looks like those changes aren=92t in master. Once this RFC passes, = I=92d very much like to see a new attempt to make the names consistent, = it=92s something that=92s bothered me. If this was to be revisited, I = think the names for IS_LONG and IS_BOOL should be =93int=94 and =93bool=94= respectively, not =93integer=94 and =93boolean=94, those feel more like = proper type names. Also, it might be worth making is_long an alias of = is_int, rather than the reverse which is what we have now. Thanks! -- Andrea Faulds http://ajf.me/