.. _php-crc32mightbenegative: .. _crc32()-might-be-negative: Crc32() Might Be Negative +++++++++++++++++++++++++ `crc32() `_ may return a negative number, on 32 bits platforms. According to the manual : Because PHP\'s integer type is signed many ``CRC32`` checksums will `result `_ in negative integers on 32 bits platforms. On 64 bits installations, all `crc32() `_ results will be positive integers though. .. code-block:: php See also `crc32() `_. Connex PHP features ------------------- + `crc32 `_ Specs _____ +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Php/Crc32MightBeNegative | +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior `, :ref:`PHP recommendations ` | +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.11.0 | +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Major | +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Slow (1 hour) | +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+