Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71424 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5128 invoked from network); 23 Jan 2014 08:43:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2014 08:43:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 74.125.82.46 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 74.125.82.46 mail-wg0-f46.google.com Received: from [74.125.82.46] ([74.125.82.46:60750] helo=mail-wg0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C7/22-23060-416D0E25 for ; Thu, 23 Jan 2014 03:43:01 -0500 Received: by mail-wg0-f46.google.com with SMTP id x12so1162311wgg.25 for ; Thu, 23 Jan 2014 00:42:58 -0800 (PST) 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=ashFmEUuLymQXSEvEMgf8CJe2y1+a6EmE5EE6GSf+6g=; b=YQpqB5jGr5vu2xs00G7SWqkduN69THTtX4oNHgAuKl3hkniIbu0flE1LicdMbZ7EKj cJ/CU6/ePAbV75Lv6826PIymNcd9NxUy8G09MbzytvpkEV9ipfnHOwsPbFxStJOzP2ED VxirBFq56aGlf4W9kxLlL0tf79iV5pAO+jp7gM6MsMDyaKzV6XWuJ9G+l6ptndP64RtW +c6MzYN3cBFYEIoM0jV0kESBEv6vAu+iWC2PBvTrQMa+LBtpWOoOCM6trSvCSbAaCLiY lgVVpC0fAZ8DB4pRtAA2DeOZCetWImrKpRg5w+cOak5UDGh9tcaxyCPiUqEvw79M2CSh U43w== X-Gm-Message-State: ALoCoQk8Iny8CFyHkTL4sH1RY/dJujWnlVXej0Qv2ViKAVc5Rbbmx/cVvXQiB54UvVqdH6RtJwAAcjUfsdHJXbJC4wu/shHmmEQJKdtoqZ/ES0FJwI7b3F3WpacQa9OE3MAR6Aemd4et MIME-Version: 1.0 X-Received: by 10.194.241.228 with SMTP id wl4mr5773107wjc.2.1390466578317; Thu, 23 Jan 2014 00:42:58 -0800 (PST) Received: by 10.227.91.196 with HTTP; Thu, 23 Jan 2014 00:42:58 -0800 (PST) In-Reply-To: References: Date: Thu, 23 Jan 2014 12:42:58 +0400 Message-ID: To: Nikita Popov Cc: Anatol Belski , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=089e01493c32791a7804f09f3a22 Subject: Re: [PHP-DEV] [RFC] 64 bit platform improvements for string length and integer From: dmitry@zend.com (Dmitry Stogov) --089e01493c32791a7804f09f3a22 Content-Type: text/plain; charset=UTF-8 I completely agree with Nikita. Why to rename LONG->INT STRLEN->STRSIZE in thousands places? Why not just define zend_long and zend_ulong to be 64-bit on 64-bit platforms and use them instead of int, ulint, zend_int, zend_uint, long, ulong where it's necessary. Anatol, I understood your point about catching incompatibility code at compile-time, but I'm not sure if the new features cost such huge code base changes. 1) 64-bit integers on Windows (they are already 64-bit on other systems) 2) 64-bit string length. I don't think many people are interested in that. Fortunately, the patch doesn't change the zval size, so it shouldn't make a lot of harm. However, usage of "zend_size_t" instead of "int" is a bit annoying. I would change it into the same "zend_long" or "zend_ulong". Thanks. Dmitry. On Sat, Jan 11, 2014 at 1:42 AM, Nikita Popov wrote: > On Fri, Jan 10, 2014 at 3:58 PM, Anatol Belski wrote: > > > Hi, > > > > https://wiki.php.net/rfc/size_t_and_int64 > > > > The discussion time has come. The work on the feature branch continues. > > The current patch is stable enough to be discussed. > > > > What is the reason behind the renames of IS_LONG to IS_INT (and Z_LVAL to > Z_IVAL etc), as well as the renames in zpp (s -> S, etc)? Why can't we keep > the old names here? That should reduce the amount of ifndefs involved a > lot, as you'd only have to do it for the type declarations themselves, not > for every single usage. Or is the point here to intentionally provide a > maximum amount of BC breakage, so code doesn't "accidentally" continue to > run (e.g. I think that without the renames extensions could continue to run > mostly without issue on 32bit.) > > Nikita > --089e01493c32791a7804f09f3a22--