Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75888 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82378 invoked from network); 22 Jul 2014 19:55:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2014 19:55:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@marc-bennewitz.de; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@marc-bennewitz.de; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain marc-bennewitz.de does not designate 80.237.132.171 as permitted sender) X-PHP-List-Original-Sender: php@marc-bennewitz.de X-Host-Fingerprint: 80.237.132.171 wp164.webpack.hosteurope.de Received: from [80.237.132.171] ([80.237.132.171:44922] helo=wp164.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/01-21666-991CEC35 for ; Tue, 22 Jul 2014 15:55:06 -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 1X9g9P-0003BO-7z; Tue, 22 Jul 2014 21:55:03 +0200 Message-ID: <53CEC194.5090307@marc-bennewitz.de> Date: Tue, 22 Jul 2014 21:55:00 +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@marc-bennewitz.de;1406058906;2b53dc6f; Subject: unsinged integer From: php@marc-bennewitz.de (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