iliaa           Wed Jun  9 10:39:33 2004 EDT

  Modified files:              
    /php-src/ext/gmp    gmp.c 
  Log:
  Fixed bug #28525 (gmp_powm() does not work with hexadecimal string modulo
  represented as a string).
  Patch by: pickett at sumu dot org
  
  
http://cvs.php.net/diff.php/php-src/ext/gmp/gmp.c?r1=1.45&r2=1.46&ty=u
Index: php-src/ext/gmp/gmp.c
diff -u php-src/ext/gmp/gmp.c:1.45 php-src/ext/gmp/gmp.c:1.46
--- php-src/ext/gmp/gmp.c:1.45  Mon Feb 16 10:13:40 2004
+++ php-src/ext/gmp/gmp.c       Wed Jun  9 10:39:33 2004
@@ -842,8 +842,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

Reply via email to