#33982 [NEW]: add functionality for gmp_nextprime (includes patch)
| From: | korte-php at et dot ruhr-uni-bochum dot de | Date: | Wed, 03 Aug 2005 16:10:37 +0000 |
| Subject: | #33982 [NEW]: add functionality for gmp_nextprime (includes patch) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-82894@lists.php.net to get a copy of this message | ||
From: korte-php at et dot ruhr-uni-bochum dot de
Operating system: Linux
PHP version: 4.4.0
PHP Bug Type: Math related
Bug description: add functionality for gmp_nextprime (includes patch)
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 bug report at http://bugs.php.net/?id=33982&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33982&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33982&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33982&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33982&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33982&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33982&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33982&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33982&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33982&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33982&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33982&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33982&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33982&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33982&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33982&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33982&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33982&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33982&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33982&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33982&r=mysqlcfg