Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76756 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79384 invoked from network); 21 Aug 2014 17:42:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2014 17:42:14 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.245 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.245 imap11-3.ox.privateemail.com Received: from [198.187.29.245] ([198.187.29.245:35433] helo=imap11-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/A2-64991-47F26F35 for ; Thu, 21 Aug 2014 13:42:13 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id E8D7F8800CB; Thu, 21 Aug 2014 13:42:09 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ibv2KojaDPwz; Thu, 21 Aug 2014 13:42:09 -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 BCC638800DA; Thu, 21 Aug 2014 13:42:05 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: Date: Thu, 21 Aug 2014 18:42:02 +0100 Cc: PHP Internals , Pierre Joye , Anatol Belski Content-Transfer-Encoding: quoted-printable Message-ID: <6E03BE65-260C-4B94-9587-C785FBC112C2@ajf.me> References: To: Dmitry Stogov 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 21 Aug 2014, at 18:23, Dmitry Stogov wrote: > The only thing that I don't like is a massive renaming described here > = https://wiki.php.net/rfc/size_t_and_int64_next#semantical_macro_renamings >=20 > IS_LONG -> IS_INT > Z_LVAL -> L_IVAL > etc >=20 > On one hand using INT may be more consistent, on the other hand it's = going > to break habits and make addition headache for merging from php-5 (I = know, > phpng already made problems) I don=92t like this. With the bigints patch and RFC, I want to keep = IS_LONG and the word =93long=94 to distinguish between what would be the = two types of integer: * 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) 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. If it must be renamed, could it be something else? IS_LONGLONG perhaps? = Seems stupid on the face of it, but it=92s actually a C `long long` = underneath, isn=92t it? FWIW, I prefer Z_LLVAL to Z_IVAL. -- Andrea Faulds http://ajf.me/