Searched refs:gmp_init (Results 1 – 25 of 60) sorted by relevance
123
/PHP-8.0/ext/gmp/tests/ |
H A D | 003.phpt | 8 $test[] = gmp_init("0b10011010010"); 10 $test[] = gmp_init("10011010010"); 14 $test[] = gmp_init("02322"); 15 $test[] = gmp_init("02322", 8); 16 $test[] = gmp_init("2322"); 17 $test[] = gmp_init("2322", 8); 20 $test[] = gmp_init("1234"); 21 $test[] = gmp_init("1234", 10); 24 $test[] = gmp_init("0x4d2"); 27 $test[] = gmp_init("4d2"); [all …]
|
H A D | gmp_init.phpt | 2 gmp_init() basic tests 8 var_dump(gmp_init("98765678")); 9 var_dump(gmp_strval(gmp_init("98765678"))); 11 var_dump(gmp_init(1,-1)); 17 var_dump(gmp_init("",36)); 22 var_dump(gmp_init("foo",3)); 27 var_dump(gmp_strval(gmp_init("993247326237679187178",3))); 40 gmp_init(): Argument #2 ($base) must be between 2 and 62 41 gmp_init(): Argument #1 ($num) is not an integer string 42 gmp_init(): Argument #1 ($num) is not an integer string [all …]
|
H A D | comparison.phpt | 8 $arr = [gmp_init(0), -3, gmp_init(2), 1]; 12 var_dump(min(gmp_init(3), 4)); 13 var_dump(max(gmp_init(3), 4));
|
H A D | gmp_kronecker.phpt | 9 var_dump(gmp_kronecker(gmp_init(23), 12)); 10 var_dump(gmp_kronecker(23, gmp_init(12))); 11 var_dump(gmp_kronecker(gmp_init(23), gmp_init(12)));
|
H A D | gh9308.phpt | 2 Bug GH-9308: GMP throws the wrong error when a GMP object is passed to gmp_init() 12 $gmp = gmp_init(gmp_init(123)); 19 gmp_init(): Argument #1 ($num) must be of type string|int, GMP given
|
H A D | gmp_gcd.phpt | 16 $n = gmp_init("8127346234"); 18 $n = gmp_init("8127346234"); 20 $n = gmp_init("8127346234"); 22 $n = gmp_init("8127346234");
|
H A D | gmp_clrbit.phpt | 8 $n = gmp_init(0); 12 $n = gmp_init(-1); 20 $n = gmp_init("1000000"); 28 $n = gmp_init("1000000"); 32 $n = gmp_init("238462734628347239571823641234");
|
H A D | bug81119.phpt | 14 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) < "x"); 15 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) < []); 16 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) + "x"); 17 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) + []);
|
H A D | bug50175.phpt | 2 Bug #50175: gmp_init() results 0 on given base and number starting with 0x or 0b 8 var_dump(gmp_init('0bcd', 16)); 9 var_dump(gmp_init('0xyz', 36));
|
H A D | gmp_setbit.phpt | 8 $n = gmp_init(-1); 12 $n = gmp_init(5); 20 $n = gmp_init(5); 24 $n = gmp_init(5); 28 $n = gmp_init("100000000000");
|
H A D | bug69803.phpt | 8 $a = gmp_init(100); 9 $b = gmp_init(200); 14 $b = gmp_init(200);
|
H A D | gmp_pown.phpt | 15 $n = gmp_init(11); 17 $e = gmp_init(7); 19 $m = gmp_init(900); 28 var_dump(gmp_powm(5, "11", gmp_init(0))); 55 $n = gmp_init("-5"); 61 $n = gmp_init("0");
|
H A D | bug80560.phpt | 9 'gmp_init', 64 echo 'Explicit base with gmp_init:', \PHP_EOL; 67 var_dump(gmp_init('0X', 16)); 72 var_dump(gmp_init('0x', 16)); 79 var_dump(gmp_init('0B', 2)); 84 var_dump(gmp_init('0b', 2)); 214 Explicit base with gmp_init: 216 gmp_init(): Argument #1 ($num) is not an integer string 217 gmp_init(): Argument #1 ($num) is not an integer string 219 gmp_init(): Argument #1 ($num) is not an integer string [all …]
|
H A D | gmp_testbit.phpt | 8 $n = gmp_init(0); 20 $n = gmp_init(-1); 28 $n = gmp_init("1000000"); 38 $n = gmp_init("238462734628347239571823641234");
|
H A D | gmp_perfect_square.phpt | 17 $n = gmp_init(100101); 19 $n = gmp_init(64); 21 $n = gmp_init(-5);
|
H A D | gmp_prob_prime.phpt | 22 $n = gmp_init("23476812735411"); 26 $n = gmp_init("19481923"); 28 $n = gmp_init(0);
|
H A D | gmp_sqrt.phpt | 23 $n = gmp_init(0); 25 $n = gmp_init(-144); 31 $n = gmp_init(777);
|
H A D | bug52906.phpt | 22 echo "{$data[0]}%{$data[1]}=".gmp_strval(gmp_mod(gmp_init($data[0]), gmp_init($data[1])));
|
H A D | gmp_lcm.phpt | 13 var_dump(gmp_lcm(gmp_init(99), gmp_init(77)));
|
H A D | comparison_invalid.phpt | 9 var_dump("hapfegfbu" > gmp_init(0)); 15 var_dump((new DateTime()) > gmp_init(0));
|
H A D | gmp_div_qr.phpt | 16 var_dump(gmp_div_qr(gmp_init(1), gmp_init(0))); 30 var_dump(gmp_div_qr(gmp_init(1123123), gmp_init(123)));
|
H A D | gmp_cmp.phpt | 15 $n = gmp_init("827278512385463739"); 17 $n1 = gmp_init("827278512385463739");
|
H A D | gmp_random_range.phpt | 8 $minusTen = gmp_init(-10); 9 $plusTen = gmp_init(10); 10 $zero = gmp_init(0);
|
H A D | serialize.phpt | 8 var_dump($n = gmp_init(42)); 12 $n = gmp_init(13);
|
H A D | gmp_divexact.phpt | 29 $n = gmp_init("10000000000000000000"); 36 $n1 = gmp_init("-100000000000000000000000000");
|
Completed in 24 milliseconds
123