#35510 [NEW]: add gmp_nextprime function to ext/gmp
| From: | ants dot aasma at gmail dot com | Date: | Thu, 01 Dec 2005 19:13:45 +0000 |
| Subject: | #35510 [NEW]: add gmp_nextprime function to ext/gmp | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-89601@lists.php.net to get a copy of this message | ||
From: ants dot aasma at gmail dot com
Operating system: Linux
PHP version: 5.1.1
PHP Bug Type: *Math Functions
Bug description: add gmp_nextprime function to ext/gmp
Description:
------------
Add the gmp_nextprime function to ext/gmp. I need it for
my cryptographically secure random number generator and
it's probably pretty useful to others too (espescially
because I can then release my code properly :).
http://www.hot.ee/stepz/Math_Random/gmp.patch
is the
(really simple) patch.
Reproduce code:
---------------
if (function_exists("gmp_nextprime")) {
echo gmp_strval(gmp_nextprime(1000));
} else {
echo "No function";
}
Expected result:
----------------
1009
Actual result:
--------------
No function
--
Edit bug report at http://bugs.php.net/?id=35510&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35510&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35510&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35510&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35510&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35510&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35510&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35510&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35510&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35510&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35510&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35510&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35510&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35510&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35510&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35510&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35510&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35510&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35510&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35510&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35510&r=mysqlcfg