Req #66657 [NEW]: gmp_init('') throws warning

From: Date: Thu, 06 Feb 2014 15:45:59 +0000
Subject: Req #66657 [NEW]: gmp_init('') throws warning
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184186@lists.php.net to get a copy of this message
From: thomas dot hebinck at digionline dot de Operating system: Linux PHP version: 5.6Git-2014-02-06 (snap) Package: GNU MP related Bug Type: Feature/Change Request Bug description:gmp_init('') throws warning 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" -- Edit bug report at https://bugs.php.net/bug.php?id=66657&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66657&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66657&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66657&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66657&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66657&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66657&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66657&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66657&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66657&r=support Expected behavior: https://bugs.php.net/fix.php?id=66657&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66657&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66657&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66657&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66657&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66657&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66657&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66657&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66657&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66657&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66657&r=mysqlcfg

« previous php.bugs (#184186) next »