ID: 33982 Updated by: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] Stas, please take a look at it. Thanks. ------------------------------------------------------------------------ [2005-08-03 20:55:41] [EMAIL PROTECTED] 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