Doc #75217 [NEW]: gmp-sign parameter must be integer string
| From: | villascape at gmail dot com | Date: | Sun, 17 Sep 2017 16:26:38 +0000 |
| Subject: | Doc #75217 [NEW]: gmp-sign parameter must be integer string | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-14979@lists.php.net to get a copy of this message | ||
From: villascape at gmail dot com
Operating system:
PHP version: 7.1.9
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:gmp-sign parameter must be integer string
Description:
------------
---
From manual page: http://www.php.net/function.gmp-sign
---
Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP
5.6 and later, or a numeric string provided that it is possible to
convert the latter to a number.
Manual says number but should say integer.
Test script:
---------------
<?php
ini_set('display_errors', 1);
echo gmp_sign('1');
echo gmp_sign('1.1');
Expected result:
----------------
11.1
Actual result:
--------------
1<br />
<b>Warning</b>: gmp_sign(): Unable to convert variable to GMP - string
is not an integer in <b>/var/www/public/noname2.php</b> on line
<b>6</b><br />r />
--
Edit bug report at https://bugs.php.net/bug.php?id=75217&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75217&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75217&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75217&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75217&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75217&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75217&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75217&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75217&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75217&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75217&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75217&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75217&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75217&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75217&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75217&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75217&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75217&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75217&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75217&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75217&r=mysqlcfg