#35510 [Csd]: [PATCH] ext/gmp: gmp_nextprime()

From: Date: Tue, 18 Jul 2006 14:56:31 +0000
Subject: #35510 [Csd]: [PATCH] ext/gmp: gmp_nextprime()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99576@lists.php.net to get a copy of this message
 ID:               35510
 Updated by:       tony2001@php.net
 Reported By:      ants dot aasma at gmail dot com
 Status:           Closed
 Bug Type:         Feature/Change Request
 Operating System: Linux
 PHP Version:      5.1.1
 New Comment:

Patch committed to 5_2 branch too.


Previous Comments:
------------------------------------------------------------------------

[2006-04-03 19:47:15] tony2001@php.net

Thank you for the patch.
Applied to HEAD (aka PHP6).

------------------------------------------------------------------------

[2005-12-01 21:46:08] sniper@php.net

reclassified where this belongs.

------------------------------------------------------------------------

[2005-12-01 20:13:44] ants dot aasma at gmail dot com

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 this bug report at http://bugs.php.net/?id=35510&edit=1


Thread (5 messages)

« previous php.bugs (#99576) next »