#33982 [Asn->Csd]: add functionality for gmp_nextprime (includes patch)
| From: | bjori@php.net | Date: | Sun, 27 Aug 2006 16:25:54 +0000 |
| Subject: | #33982 [Asn->Csd]: add functionality for gmp_nextprime (includes patch) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101386@lists.php.net to get a copy of this message | ||
ID: 33982
Updated by: bjori@php.net
Reported By: korte-php at et dot ruhr-uni-bochum dot de
-Status: Assigned
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.4.0
Assigned To: stas
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Fixed in 5.2 & above
Previous Comments:
------------------------------------------------------------------------
[2005-08-03 21:43:58] tony2001@php.net
Stas, please take a look at it.
Thanks.
------------------------------------------------------------------------
[2005-08-03 20:55:41] nlopess@php.net
seems to be a good addition to php 5.1.1!
------------------------------------------------------------------------
[2005-08-03 18:10:36] korte-php at et dot ruhr-uni-bochum dot de
Description:
------------
In order to use the php-gmp functions for cryptographic purposes,
having mpz_nextprime ist sort of essential.
Reproduce code:
---------------
url to patch (51 lines)
http://user.et-cip.rub.de/korte/php-4.4.0-gmp-nextprime.patch
Expected result:
----------------
Use like:
<?php
$rand1 = gmp_random(10);
echo "Random: " . gmp_strval($rand1) . "<br>\n";
$prime1 = gmp_nextprime($rand1);
echo "Next Prime: " . gmp_strval($prime1) . "<br>\n";
}
?>
Actual result:
--------------
Working fine in our installation - would like to have in the normal
distribution as well :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33982&edit=1