Home
last modified time | relevance | path

Searched refs:bcpowmod (Results 1 – 18 of 18) sorted by relevance

/PHP-8.2/ext/bcmath/tests/
H A Dbcpowmod_error.phpt2 bcpowmod() requires well-formed values
9 bcpowmod('a', '1', '1');
15 bcpowmod('1', 'a', '1');
21 bcpowmod('1', '1', 'a');
28 bcpowmod(): Argument #1 ($num) is not well-formed
29 bcpowmod(): Argument #2 ($exponent) is not well-formed
30 bcpowmod(): Argument #3 ($modulus) is not well-formed
H A Dbcpowmod_with_mod_1.phpt2 bcpowmod() must return 0 when mod is +1 or -1
7 var_dump(bcpowmod(5, 0, 1));
8 var_dump(bcpowmod(5, 0, 1, 3));
9 var_dump(bcpowmod(5, 0, -1));
10 var_dump(bcpowmod(5, 0, -1, 3));
H A Dbcpowmod.phpt2 bcpowmod() - Raise an arbitrary precision number to another, reduced by a specified modulus
9 var_dump(bcpowmod("5", "2", "7"));
10 var_dump(bcpowmod("-2", "5", "7"));
11 var_dump(bcpowmod("10", "2147483648", "2047"));
12 var_dump(bcpowmod("10", "0", "2047"));
H A Dbug72093.phpt2 Bug 72093: bcpowmod fails on negative scale and corrupts _one_ definition
8 var_dump(bcpowmod(1, 0, 128, -200));
13 var_dump(bcpowmod(1, 1.2, 1, 1));
19 bcpowmod(): Argument #4 ($scale) must be between 0 and 2147483647
20 bcpowmod(): Argument #2 ($exponent) cannot have a fractional part
H A Dbug75178.phpt2 Bug #75178 (bcpowmod() misbehaves for non-integer base or modulus)
8 var_dump(bcpowmod('4.1', '4', '3', 3));
13 var_dump(bcpowmod('4', '4', '3.1', 3));
19 bcpowmod(): Argument #1 ($num) cannot have a fractional part
20 bcpowmod(): Argument #3 ($modulus) cannot have a fractional part
H A Dbug44995.phpt2 Bug #44995 (bcpowmod() fails if scale != 0)
7 var_dump(bcpowmod('4', '4', '3', 1));
8 var_dump(bcpowmod('3234', '32345', '22345', 1));
H A Dbug54598.phpt2 Bug #54598 (bcpowmod() may return 1 if modulus is 1)
7 var_dump(bcpowmod(5, 0, 1));
8 var_dump(bcpowmod(5, 0, 1, 3));
H A Dscale.phpt12 'bcpowmod: ', bcpowmod('2', '1', '3', 5), PHP_EOL,
21 bcpowmod: 2.00000
H A Dscale_ini.phpt14 'bcpowmod: ', bcpowmod('2', '1', '3'), PHP_EOL,
23 bcpowmod: 2.00000
H A Dbug78878.phpt8 print bcmul("\xB26483605105519922841849335928742092", bcpowmod(2, 65535, -4e-4));
14 bcpowmod(): Argument #3 ($modulus) cannot have a fractional part
H A Dbcpowmod_negative_exponent.phpt10 var_dump(bcpowmod('1', '-1', '2'));
16 bcpowmod(): Argument #2 ($exponent) must be greater than or equal to 0
H A Dbcpowmod_zero_modulus.phpt10 var_dump(bcpowmod('1', '1', '0'));
H A Dnegative_scale.phpt35 bcpowmod('1', '2', '3', -9);
66 bcpowmod(): Argument #4 ($scale) must be between 0 and 2147483647
H A Dstr2num_formatting.phpt4 1 and 2 argument of bcadd/bcsub/bcmul/bcdiv/bcmod/bcpowmod/bcpow/bccomp (last one works different t…
/PHP-8.2/ext/bcmath/
H A Dbcmath_arginfo.h52 ZEND_FUNCTION(bcpowmod);
65 ZEND_FE(bcpowmod, arginfo_bcpowmod)
H A Dbcmath.stub.php21 function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null): string {} function
H A Dbcmath.c418 PHP_FUNCTION(bcpowmod) in PHP_FUNCTION() argument
/PHP-8.2/
H A DNEWS564 . Fixed bug (bcpowmod() with mod = -1 returns 1 when it must be 0). (Girgias)

Completed in 26 milliseconds