|
|
| version 1.1.1.3, 2013/07/22 01:31:52 | version 1.1.1.5, 2014/06/15 20:03:49 |
|---|---|
| Line 2 | Line 2 |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | PHP Version 5 | | | PHP Version 5 | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | Copyright (c) 1997-2013 The PHP Group | | | Copyright (c) 1997-2014 The PHP Group | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | This source file is subject to version 3.01 of the PHP license, | | | This source file is subject to version 3.01 of the PHP license, | |
| | that is bundled with this package in the file LICENSE, and is | | | that is bundled with this package in the file LICENSE, and is | |
| Line 1069 ZEND_FUNCTION(gmp_powm) | Line 1069 ZEND_FUNCTION(gmp_powm) |
| zval **base_arg, **exp_arg, **mod_arg; | zval **base_arg, **exp_arg, **mod_arg; |
| mpz_t *gmpnum_base, *gmpnum_exp, *gmpnum_mod, *gmpnum_result; | mpz_t *gmpnum_base, *gmpnum_exp, *gmpnum_mod, *gmpnum_result; |
| int use_ui = 0; | int use_ui = 0; |
| int temp_base, temp_exp, temp_mod; | int temp_base = 0, temp_exp = 0, temp_mod; |
| if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ", &base_arg, &exp_arg, &mod_arg) == FAILURE){ | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ", &base_arg, &exp_arg, &mod_arg) == FAILURE){ |
| return; | return; |
| Line 1333 ZEND_FUNCTION(gmp_cmp) | Line 1333 ZEND_FUNCTION(gmp_cmp) |
| res = mpz_cmp_si(*gmpnum_a, Z_LVAL_PP(b_arg)); | res = mpz_cmp_si(*gmpnum_a, Z_LVAL_PP(b_arg)); |
| } else { | } else { |
| res = mpz_cmp(*gmpnum_a, *gmpnum_b); | res = mpz_cmp(*gmpnum_a, *gmpnum_b); |
| FREE_GMP_TEMP(temp_b); | |
| } | } |
| FREE_GMP_TEMP(temp_a); | FREE_GMP_TEMP(temp_a); |
| Line 1528 ZEND_FUNCTION(gmp_testbit) | Line 1529 ZEND_FUNCTION(gmp_testbit) |
| if (mpz_tstbit(*gmpnum_a, index)) { | if (mpz_tstbit(*gmpnum_a, index)) { |
| RETURN_TRUE; | RETURN_TRUE; |
| } | } |
| RETURN_FALSE; | RETURN_FALSE; |
| } | } |
| /* }}} */ | /* }}} */ |