From: mattficken Operating system: PHP version: 5.4.1RC1 Package: GNU MP related Bug Type: Bug Bug description:gmp_nextprime and gmp_dcdext behavior differences
Description: ------------ 022.phpt which tests gmp_gcdext() and gmp_nextprime.phpt which tests gmp_nextprime() fail on Windows but pass on Linux. The returned value of both of those functions in some cases doesnât match the expected value(in some cases it does). In example #1 in the documentation for gmp_nextprime() (http://us3.php.net/gmp_nextprime), gmp_nextprime(-1000) returns -997 however on Linux it returns 2, which is what the test expects so the test passes. Not only is this a behavior difference between Windows and Linux but is not what the documentation states ( gmp_nextprime(-1000) => -997 not 2). -- Edit bug report at https://bugs.php.net/bug.php?id=61643&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61643&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61643&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61643&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61643&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61643&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61643&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61643&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61643&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61643&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61643&r=support Expected behavior: https://bugs.php.net/fix.php?id=61643&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61643&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61643&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61643&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61643&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61643&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61643&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61643&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61643&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61643&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61643&r=mysqlcfg