Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75890 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85990 invoked from network); 22 Jul 2014 20:00:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2014 20:00:31 -0000 Received: from [127.0.0.1] ([127.0.0.1:28854]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id AF/A1-21666-ED2CEC35 for ; Tue, 22 Jul 2014 16:00:30 -0400 Authentication-Results: pb1.pair.com smtp.mail=php@mabe.berlin; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@mabe.berlin; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mabe.berlin from 80.237.132.171 cause and error) X-PHP-List-Original-Sender: php@mabe.berlin X-Host-Fingerprint: 80.237.132.171 wp164.webpack.hosteurope.de Received: from [80.237.132.171] ([80.237.132.171:39450] helo=wp164.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/FB-21666-954AEC35 for ; Tue, 22 Jul 2014 13:50:17 -0400 Received: from dslb-178-005-231-020.178.005.pools.vodafone-ip.de ([178.5.231.20] helo=[192.168.178.30]); authenticated by wp164.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1X9eCb-0000yP-Qg; Tue, 22 Jul 2014 19:50:13 +0200 Message-ID: <53CEA453.9050700@mabe.berlin> Date: Tue, 22 Jul 2014 19:50:11 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;php@mabe.berlin;1406051417;72eccc7f; Subject: unsinged integer From: php@mabe.berlin (Marc Bennewitz) Hi all, I like to create an RFC to add an unsinged integer type for the following purposes: - higher max value - DBs already allow UNSIGNED INT/BIGINT which is a farce to work with in PHP - better support pack/unpack unsigned integers from/to PHP using the un/pack functions - simplified right shift of unsinged integers because PHP "safes" the sing bit on singed integers which leads to bugs or overcomplicated code if you need that bit for others than a sign - if a parameter type-hint or similar functionality will be implemented this type will be very useful, too. Else it will be also useful to make sure you have no negative integer by simply converting to it. What do you think? (Does it worth the expense for a RFC?) Marc