Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76812 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97666 invoked from network); 22 Aug 2014 14:52:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2014 14:52:20 -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.207 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.207 imap2-2.ox.privateemail.com Received: from [192.64.116.207] ([192.64.116.207:42312] helo=imap2-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/23-13566-22957F35 for ; Fri, 22 Aug 2014 10:52:18 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 215D58C007D; Fri, 22 Aug 2014 10:52:15 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uLDaoitpYOsu; Fri, 22 Aug 2014 10:52:14 -0400 (EDT) Received: from [192.168.0.2] (05439dda.skybroadband.com [5.67.157.218]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 19B2C8C007B; Fri, 22 Aug 2014 10:52:11 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: <53F6ECC9.8040200@beccati.com> Date: Fri, 22 Aug 2014 15:52:08 +0100 Cc: Dmitry Stogov , PHP Internals , Pierre Joye , Anatol Belski Content-Transfer-Encoding: quoted-printable Message-ID: <50A9BAD4-F7B0-4B2A-B084-5681E874BA41@ajf.me> References: <6E03BE65-260C-4B94-9587-C785FBC112C2@ajf.me> <53F6ECC9.8040200@beccati.com> To: Matteo Beccati X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] 64-bit integers and 64-bit string length patch is ready to be merged From: ajf@ajf.me (Andrea Faulds) On 22 Aug 2014, at 08:10, Matteo Beccati wrote: > On 21/08/2014 19:42, Andrea Faulds wrote: >> * IS_LONG/long - 32-bit or 64-bit integer (machine-dependant) >> * IS_BIGINT/bigint - arbitrary-size integer >> * IS_BIGINT_OR_LONG/integer - either a long or a bigint (pseudo-type) >>=20 >> Replacing IS_LONG with IS_INT kinda ruins my naming scheme. The = intention is that =93integer=94 and =93int=94 are synonyms for =93long = or bigint=94. However, if internally an int is one thing and to userland = it=92s another, that would be problematic. If this goes through, I=92d = probably make my bigints patch rename IS_INT to something new again, = probably IS_SMALLINT or even back to IS_LONG. >=20 > wouldn't the following work for you? >=20 > * IS_INT > * IS_BIGINT > * IS_INT_OR_BIGINT >=20 >=20 > After all, SQL has INT(EGER) and BIGINT, albeit with different = meanings. > In fact "bigint" itself to me and possibly many other developers means = a > 64bit int, not a GMP int. It=92s doable, it=92s just confusing. =46rom userland, =93int=94 can be = either IS_INT or IS_BIGINT. I=92d rather it was IS_LONG or something. -- Andrea Faulds http://ajf.me/