Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80672 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18727 invoked from network); 17 Jan 2015 03:32:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2015 03:32:59 -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 192.64.116.207 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.207 imap2-2.ox.privateemail.com Received: from [192.64.116.207] ([192.64.116.207:38391] helo=imap2-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/C6-16533-8E7D9B45 for ; Fri, 16 Jan 2015 22:32:58 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 129808C0069; Fri, 16 Jan 2015 22:32:54 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id b5eUyaiGsMVY; Fri, 16 Jan 2015 22:32:53 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 143D28C0009; Fri, 16 Jan 2015 22:32:52 -0500 (EST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <53CEC194.5090307@marc-bennewitz.de> Date: Sat, 17 Jan 2015 03:32:49 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <2DD279B4-E872-4FDA-9FDC-12770D4BF052@ajf.me> References: <53CEC194.5090307@marc-bennewitz.de> To: Marc Bennewitz X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] unsinged integer From: ajf@ajf.me (Andrea Faulds) Hi Marc, This is an unusual follow-up from me. Particularly on 32-bit systems, it would be useful to have a =91u=92 = zend_parse_parameters specifier for an unsigned integer. Unfortunately, = again, I don=92t think native unsigned integers (IS_ULONG) will get into = PHP. But it looks like the bigint RFC probably will, and here=92s the = opportunity. With the bigint RFC, we could add a =91u=92 specifier. You=92d get a = native ulong (zpp would convert from long or bigint), and could easily = produce a long/bigint from your ulong if you need to return one (add = RETURN_ULONG which implicitly converts?). Now, it=92s not as fast as a native IS_ULONG type would be, but we could = still do things like properly support file sizes in the 2GB-4GB range on = 32-bit, at least. :) What do you think? -- Andrea Faulds http://ajf.me/