Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76863 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37059 invoked from network); 25 Aug 2014 11:14:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2014 11:14:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.179 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.179 mail-vc0-f179.google.com Received: from [209.85.220.179] ([209.85.220.179:40449] helo=mail-vc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/53-20472-1AA1BF35 for ; Mon, 25 Aug 2014 07:14:42 -0400 Received: by mail-vc0-f179.google.com with SMTP id hq11so14678034vcb.24 for ; Mon, 25 Aug 2014 04:14:38 -0700 (PDT) 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:date :message-id:subject:from:to:cc:content-type; bh=dDLp90XGSbjfYj5VB1tLo2nVPDyM6c87OoZgPEYV7MQ=; b=bGK87TQXJhL4MumGuHxuLuEw3L4hc5ScgqfcwIZAll/1VnsL0J/r0DET492B1QFDpb TMhAyKedAdGLm5aVNJWBGF0d5a+5JFJB74HTeWkslKfmebU8uY9GWDH0JXTx//m6BdOW Xt7j5ZGu8Q93dpRlRpw+G6KcnPN9Z7yxQb9y4pWRbynhsHCMZwAl1vcy4M6gSNIAN1hs 94No6/jWo1WjaLv1PCpam6OiNhwBahAfPKUHsGSvZiGuefOGcEVoRbx+z/5B6DA/vpDQ JokNixwXZ8gWhN50x2Cl8o7BTIBksatL8/Nyl7DWXWbYOUUM7KDTqI/GBhRVRgniWKtR j4Sg== X-Gm-Message-State: ALoCoQkSzxMMk3rZupVDYoKTo+daT3+zisa2y/wJAl2HYUJnZJhGJnu6P55o8SyzRi2aBi5bBZzAZsekEgTzxgYi55B1sEujf7IEfnvNo4U7snGvAgONmt+tVZGjBNAS6hMo0f5r6byd MIME-Version: 1.0 X-Received: by 10.220.182.1 with SMTP id ca1mr17887417vcb.21.1408965278394; Mon, 25 Aug 2014 04:14:38 -0700 (PDT) Received: by 10.52.110.170 with HTTP; Mon, 25 Aug 2014 04:14:38 -0700 (PDT) In-Reply-To: References: <437C0D23-0519-4EA1-BBEB-A74C7C70A10E@rouvenwessling.de> Date: Mon, 25 Aug 2014 15:14:38 +0400 Message-ID: To: Pierre Joye Cc: =?UTF-8?Q?Rouven_We=C3=9Fling?= , PHP internals Content-Type: multipart/alternative; boundary=001a1132f2a2eb81640501724aba Subject: Re: [PHP-DEV] Naming issues, solutions From: dmitry@zend.com (Dmitry Stogov) --001a1132f2a2eb81640501724aba Content-Type: text/plain; charset=UTF-8 On Mon, Aug 25, 2014 at 2:59 PM, Pierre Joye wrote: > > On Aug 25, 2014 12:56 PM, "Dmitry Stogov" wrote: > > > > > > > > > > On Mon, Aug 25, 2014 at 2:45 PM, Pierre Joye > wrote: > >> > >> > >> On Aug 25, 2014 9:22 AM, "Dmitry Stogov" wrote: > >> > > >> > Hi Pierre, > >> > > >> > I'm glad, you agree to rename IS_INT back to IS_LONG. > >> > > >> > zend_long and size_t usage looks fine. > >> > > >> > I see no problems changing zend_string related API and related macros > introduced in NG. They are new for everyone. > >> > I hope, the changes won't make API less clear or useful (so it would > be great to review them). > >> > > >> > I don't see a big reason to rename "zend_uint" into "uint32_t", but > it's just my own opinion. I would prefer keep it as is, or at worse case > rename into "zend_uint32" or "uint32". Anyway, I'll agree with majority. > >> > > >> > >> uint32_t :) > > > > 3 people are not the majority (or may be I missed discussion on IRC). > > It's better to think before changing something in many places without a > real reason. > > Why do we need it when the standard type exists and does exactly what we > want? Same for size_t. It is mostly contained in the engine, no other > impact and avoid yet another type definition for existing standard type (we > have php_stdint.h to make them always available). > We never had zend_size_t before and used size_t. but we had zend_uint for ages and changing it to new name in thousand places won't make a lot of sense. If you like to make it always be a 32-bit number, just change the definition. If you are going to rename zend_uint, should we expect renaming of all the similar zend_* types from zend_types.h? typedef unsigned char zend_bool; typedef unsigned char zend_uchar; typedef unsigned int zend_uint; typedef unsigned long zend_ulong; typedef unsigned short zend_ushort; Thanks. Dmitry. >> > How are we going to proceed? > >> > Do you like voting in > https://wiki.php.net/rfc/better_type_names_for_int64 or you may just > revert part of the int64 patch related to IS_LONG -> IS_INT renaming? > >> > >> We will just do the changes listed in the initial mail. The sooner the > better. Anatol or I will do it. It should be ready by Wednesday. If we can > avoid a 2-3 weeks delay let not do the rfc. As these changes match what was > discussed and fit with the majority (subjective part as only the vocal > ones), we should not see any objection. We will simply apply it on > Wednesday if nobody complained. > > > > Agree, we need it ASAP. > > I'll try not to commit anything big to not make you additional troubles. > > > > Thanks. Dmitry. > > Thanks > > Cheers, > Pierre > --001a1132f2a2eb81640501724aba--