iliaa Sun Feb 8 23:27:36 2004 EDT Modified files: /php-src/ext/gmp gmp.c Log: Fixed bug #27172 (Possible floating point exception in gmp_powm()). http://cvs.php.net/diff.php/php-src/ext/gmp/gmp.c?r1=1.42&r2=1.43&ty=u Index: php-src/ext/gmp/gmp.c diff -u php-src/ext/gmp/gmp.c:1.42 php-src/ext/gmp/gmp.c:1.43 --- php-src/ext/gmp/gmp.c:1.42 Sat Feb 7 14:14:49 2004 +++ php-src/ext/gmp/gmp.c Sun Feb 8 23:27:35 2004 @@ -825,6 +825,11 @@ WRONG_PARAM_COUNT; } + convert_to_long_ex(mod_arg); + if (!Z_LVAL_PP(mod_arg)) { + RETURN_FALSE; + } + FETCH_GMP_ZVAL(gmpnum_base, base_arg); if (Z_TYPE_PP(exp_arg) == IS_LONG && Z_LVAL_PP(exp_arg) >= 0) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php