iliaa Wed Jun 9 10:39:36 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src NEWS
/php-src/ext/gmp gmp.c
Log:
MFH: Fixed bug #28525 (gmp_powm() does not work with hexadecimal string
modulo represented as a string).
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.679&r2=1.1247.2.680&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.679 php-src/NEWS:1.1247.2.680
--- php-src/NEWS:1.1247.2.679 Tue Jun 8 09:23:46 2004
+++ php-src/NEWS Wed Jun 9 10:39:36 2004
@@ -12,6 +12,8 @@
(Ilia)
- Fixed bug #28627 (When multiple MySQL links are used default link is leaked).
(gavin at ipalsoftware dot com, Ilia)
+- Fixed bug #28525 (gmp_powm() does not work with hexadecimal string modulo
+ represented as a string). (pickett at sumu dot org, Ilia)
03 Jun 2004, Version 4.3.7
- Upgraded bundled GD library to 2.0.23. (Ilia)
http://cvs.php.net/diff.php/php-src/ext/gmp/gmp.c?r1=1.29.4.10&r2=1.29.4.11&ty=u
Index: php-src/ext/gmp/gmp.c
diff -u php-src/ext/gmp/gmp.c:1.29.4.10 php-src/ext/gmp/gmp.c:1.29.4.11
--- php-src/ext/gmp/gmp.c:1.29.4.10 Mon Feb 16 10:13:49 2004
+++ php-src/ext/gmp/gmp.c Wed Jun 9 10:39:36 2004
@@ -830,8 +830,7 @@
}
FETCH_GMP_ZVAL(gmpnum_mod, mod_arg);
- convert_to_long_ex(mod_arg);
- if (!Z_LVAL_PP(mod_arg)) {
+ if (!mpz_cmp_ui(*gmpnum_mod, 0)) {
RETURN_FALSE;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php