#28525 [Opn->Bgs]: gmp_powm() can't use hexadecimal string modulo
| From: | iliaa@php.net | Date: | Wed, 26 May 2004 17:24:11 +0000 |
| Subject: | #28525 [Opn->Bgs]: gmp_powm() can't use hexadecimal string modulo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60029@lists.php.net to get a copy of this message | ||
ID: 28525
Updated by: iliaa@php.net
Reported By: pickett at sumu dot org
-Status: Open
+Status: Bogus
Bug Type: *Math Functions
PHP Version: 4.3.7RC1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Do not pass hex numbers as strings.
var_dump(gmp_powm(0x1, 0x1, 0x1));
works fine.
Previous Comments:
------------------------------------------------------------------------
[2004-05-26 11:08:10] pickett at sumu dot org
Description:
------------
Fix for bug #27172 broke hexadecimal string modulos for gmp_powm().
Reproduce code:
---------------
var_dump(gmp_powm("0x1", "0x1", "0x1"))
Expected result:
----------------
resource(4) of type (GMP integer)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28525&edit=1