unsinged integer

From: Date: Tue, 22 Jul 2014 19:55:00 +0000
Subject: unsinged integer
Groups: php.internals 
Request: Send a blank email to internals+get-75888@lists.php.net to get a copy of this message
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

« previous php.internals (#75888) next »