Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71055 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79327 invoked from network); 11 Jan 2014 13:18:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2014 13:18:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.46 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.128.46 mail-qe0-f46.google.com Received: from [209.85.128.46] ([209.85.128.46:57895] helo=mail-qe0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/40-10544-AB441D25 for ; Sat, 11 Jan 2014 08:18:50 -0500 Received: by mail-qe0-f46.google.com with SMTP id a11so5484682qen.19 for ; Sat, 11 Jan 2014 05:18:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=n5uwemLi+1ts9IGQXPsOLE5iXDnv+/Tc0lEA965LMm4=; b=mP9Z3dRpRh2dQ3hP9SwxtwCK0KPse4Sz+XyBY8aEv6u/UOAfY18AKgJJyk1rR8T7iJ JmmZYjg5bEN9yufXli5L9BCM2FuYDw+4HOD4WxDpkQaoeDAoHbJmQ9yYakTFWAUt9zDj 2YcuaTSengi1Cy+MhsVyUFU5PwqLVA0D2FSNqCsgltf/fHY7zZX6XRaasGyElPRbjeTg gj2q901kz0Vj82dq6bFm1VV5SNHfWrfX7ikAPfCC2X3+xLzffrsSXH2H2/NbOesXMYWs M0Rv6t0M8/uVAv00gXPUsMHtlA15NvY3gQKnH99qRrWUr60CrQaTSW3ZviEw3+CwxmOp eGRQ== MIME-Version: 1.0 X-Received: by 10.229.7.133 with SMTP id d5mr18553182qcd.10.1389446327089; Sat, 11 Jan 2014 05:18:47 -0800 (PST) Sender: jakub.php@gmail.com Received: by 10.224.68.68 with HTTP; Sat, 11 Jan 2014 05:18:46 -0800 (PST) In-Reply-To: References: Date: Sat, 11 Jan 2014 13:18:46 +0000 X-Google-Sender-Auth: NvdaffbAPWkGlwEmMnGkCrKFu6E Message-ID: To: Anatol Belski Cc: Hannes Magnusson , Nikita Popov , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=001a1135ec94c2bd8904efb1ae0b Subject: Re: [PHP-DEV] [RFC] 64 bit platform improvements for string length and integer From: bukka@php.net (Jakub Zelenka) --001a1135ec94c2bd8904efb1ae0b Content-Type: text/plain; charset=ISO-8859-1 Hi Anatol, > > About zpp I've got a click - the compatibility with 5.x can be integrated > into zpp itself in 6.x. I mean look here > > http://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_API.c;hb=refs/heads/str_size_and_int64#l326 > - 'l' and 'L' was replaced with 'i' and 'I', but nothing prevents to turn > those formats as aliases in 6.x. That way 'l' and 'i' and another pairs > will do the same thing, new implementations can use clean semantics, and > the old formats can be removed after 5.x EOL. This solution however won't > force the new semantic. > I agree with keeping old flags ('l', 'p', 's'...). I think that would be good to add range checks to zend_parse_arg_impl for these flags. If the casted value is bigger (LONG_MAX, INT_MAX...), then warning. It would be really helpful and simplify the migration for library wrappers where these checks needs to be usually done... Thanks Jakub --001a1135ec94c2bd8904efb1ae0b--