[php-src] Issue #8016: Unify `integer` range across platforms

From: Date: Tue, 01 Feb 2022 14:33:48 +0000
Subject: [php-src] Issue #8016: Unify `integer` range across platforms
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239399@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8016 Comment Author: mvorisek My primary motivation is unified behaviour. One of many examples are IDs. Most php apps use integer type for ID (for ex. for database records). Currently when these apps are run on 32b php, they cannot handle big numbers and very often produce unexpected results as very few apps are tested against 32b platforms/binaries. 32b platform/CPU is commonly used for IoT or other embedded areas. Another arguments for this change is that php uses unified/64b precision for floating point numbers already. Also, other higher level/weakly typed languages, such lua, use 64b integers across all platforms. I understand this definitely requires an RFC, but I belive the impact on the end user, considering the slight performance decrease, is only positive. I am starting the RFC process here to gather the feedback from all sides and would be also grateful if someone wants to help with the RFC itself and/or the implementation. Thanks!

« previous php.bugs (#239399) next »