|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-02-06 15:45 UTC] thomas dot hebinck at digionline dot de
Description:
------------
Up to PHP 5.5.9 gmp_init() called with an empty string as argument had the same result as called with a zero. In PHP 5.6 Alpha 1 (and the current snapshot) this call throws a warning. This breaks existing code.
Test script:
---------------
echo gmp_strval(gmp_init(''));
Expected result:
----------------
"0"
Actual result:
--------------
Warning: gmp_init() [function.gmp-init.php]: Unable to convert variable to GMP - string is not an integer in /SPACE/ww3/www/wws/130009.php(103) : eval()'d code on line 1
"0"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 22:00:01 2025 UTC |
gmp_init('') did not return a GMP zero, but boolean false, indicating an error condition. PHP 5.6 adds a warning for that previously silent error.