Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76759 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84345 invoked from network); 21 Aug 2014 17:56:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2014 17:56:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.47 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.47 mail-qa0-f47.google.com Received: from [209.85.216.47] ([209.85.216.47:37270] helo=mail-qa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/00-18459-CB236F35 for ; Thu, 21 Aug 2014 13:56:13 -0400 Received: by mail-qa0-f47.google.com with SMTP id i13so8436134qae.20 for ; Thu, 21 Aug 2014 10:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tp8ATG6NSc6jmGEqykVEE6eczIJLNgk36K1qQ2/c/8k=; b=MOPfnYT1qh4iIr6KHz5eNgON7ilgdgG7fIyVQXoKvBdGOLPqUzERgInyHhp3l3z7Y1 tpJf9EFHp+Va+KR8gDWM9YgpKLRfm1JYOIltzpm8gVtUgaPOOt048AtpyWYmZlhGwmp/ Ao8QzJ75HM6v+jJm48gFOQpivQ0jpNjgnlO/LbqSCsShdAD+wXLO+vehB9V9mUYvjLqY HKwruiHojQOnd8Hd1jIl2o2BQ8k46fo5XbY1YG30fa+6JrbfOQkvBzI4bve9EZVDuNlm g49x5vGqubyoq5eo9ehHXLis+nUzmDu1vFp6Akf2o+qy6tyDQAvss8da7w35pYR33iHy pqKQ== MIME-Version: 1.0 X-Received: by 10.224.47.130 with SMTP id n2mr11155qaf.87.1408643769490; Thu, 21 Aug 2014 10:56:09 -0700 (PDT) Received: by 10.140.95.146 with HTTP; Thu, 21 Aug 2014 10:56:09 -0700 (PDT) Received: by 10.140.95.146 with HTTP; Thu, 21 Aug 2014 10:56:09 -0700 (PDT) In-Reply-To: <6E03BE65-260C-4B94-9587-C785FBC112C2@ajf.me> References: <6E03BE65-260C-4B94-9587-C785FBC112C2@ajf.me> Date: Thu, 21 Aug 2014 19:56:09 +0200 Message-ID: To: Andrea Faulds Cc: PHP internals , Dmitry Stogov , Anatol Belski Content-Type: multipart/alternative; boundary=001a1134b0047ee4fd0501276f85 Subject: Re: [PHP-DEV] 64-bit integers and 64-bit string length patch is ready to be merged From: pierre.php@gmail.com (Pierre Joye) --001a1134b0047ee4fd0501276f85 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Aug 21, 2014 7:42 PM, "Andrea Faulds" wrote: > > > 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 > > > > IS_LONG -> IS_INT > > Z_LVAL -> L_IVAL > > etc > > > > 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=E2=80=99t like this. With the bigints patch and RFC, I want to keep= IS_LONG and the word =E2=80=9Clong=E2=80=9D to distinguish between what would be th= e 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 =E2=80=9Cinteger=E2=80=9D and =E2=80=9Cint=E2=80=9D are synonyms fo= r =E2=80=9Clong or bigint=E2=80=9D. However, if internally an int is one thing and to userland it=E2=80=99s another, that w= ould be problematic. If this goes through, I=E2=80=99d probably make my bigints pat= ch 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=E2=80=99s actually a C `long long` underneath, isn=E2=80=99t it? FWIW, I prefer Z_LLVAL to Z_IVAL. The original patch used the right naming based on the type used behind it. In any case, the patch represents what the rfc and the discussions around it say. I rather merge it asal and begin on the (long) list of todos for 7. If you like to propose new naming with the bigint rfc, please go ahead. Time is also an issue as ppl are beginning to migrate their extensions to test. Changing them again takes time. Cheers, Pierre --001a1134b0047ee4fd0501276f85--