Closes GH-6205.
/** @generate-function-entries */
-function bcadd(string $left_operand, string $right_operand, ?int $scale = null): string {}
+function bcadd(string $num1, string $num2, ?int $scale = null): string {}
-function bcsub(string $left_operand, string $right_operand, ?int $scale = null): string {}
+function bcsub(string $num1, string $num2, ?int $scale = null): string {}
-function bcmul(string $left_operand, string $right_operand, ?int $scale = null): string {}
+function bcmul(string $num1, string $num2, ?int $scale = null): string {}
-function bcdiv(string $dividend, string $divisor, ?int $scale = null): string {}
+function bcdiv(string $num1, string $num2, ?int $scale = null): string {}
-function bcmod(string $dividend, string $divisor, ?int $scale = null): string {}
+function bcmod(string $num1, string $num2, ?int $scale = null): string {}
-function bcpowmod(string $base, string $exponent, string $modulus, ?int $scale = null): string {}
+function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null): string {}
-function bcpow(string $base, string $exponent, ?int $scale = null): string {}
+function bcpow(string $num, string $exponent, ?int $scale = null): string {}
-function bcsqrt(string $operand, ?int $scale = null): string {}
+function bcsqrt(string $num, ?int $scale = null): string {}
-function bccomp(string $left_operand, string $right_operand, ?int $scale = null): int {}
+function bccomp(string $num1, string $num2, ?int $scale = null): int {}
function bcscale(?int $scale = null): int {}
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: a1e223f29a06a2292a88c0e90e104cb956f80500 */
+ * Stub hash: 0c1e2a6163a5fc0f42bf79bbc530af7c5fd77074 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcadd, 0, 2, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, left_operand, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, right_operand, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, num1, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, num2, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
ZEND_END_ARG_INFO()
#define arginfo_bcmul arginfo_bcadd
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcdiv, 0, 2, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, dividend, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, divisor, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
-ZEND_END_ARG_INFO()
+#define arginfo_bcdiv arginfo_bcadd
-#define arginfo_bcmod arginfo_bcdiv
+#define arginfo_bcmod arginfo_bcadd
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcpowmod, 0, 3, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, base, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, num, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, exponent, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, modulus, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcpow, 0, 2, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, base, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, num, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, exponent, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcsqrt, 0, 1, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, operand, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, num, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bccomp, 0, 2, IS_LONG, 0)
- ZEND_ARG_TYPE_INFO(0, left_operand, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, right_operand, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, num1, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, num2, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
ZEND_END_ARG_INFO()
}
?>
--EXPECT--
-bcsqrt(): Argument #1 ($operand) must be greater than or equal to 0
+bcsqrt(): Argument #1 ($num) must be greater than or equal to 0
}
?>
--EXPECT--
-bcpowmod(): Argument #1 ($base) cannot have a fractional part
+bcpowmod(): Argument #1 ($num) cannot have a fractional part
bcpowmod(): Argument #3 ($modulus) cannot have a fractional part
{
}
-function gmp_init(int|string $number, int $base = 0): GMP {}
+function gmp_init(int|string $num, int $base = 0): GMP {}
-function gmp_import(string $data, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): GMP {}
+function gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): GMP {}
-function gmp_export(GMP|int|string $gmpnumber, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string {}
+function gmp_export(GMP|int|string $num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string {}
-function gmp_intval(GMP|int|string $gmpnumber): int {}
+function gmp_intval(GMP|int|string $num): int {}
-function gmp_strval(GMP|int|string $gmpnumber, int $base = 10): string {}
+function gmp_strval(GMP|int|string $num, int $base = 10): string {}
-function gmp_add(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_add(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_sub(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_sub(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_mul(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_mul(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_div_qr(GMP|int|string $a, GMP|int|string $b, int $round = GMP_ROUND_ZERO): array {}
+function gmp_div_qr(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): array {}
-function gmp_div_q(GMP|int|string $a, GMP|int|string $b, int $round = GMP_ROUND_ZERO): GMP {}
+function gmp_div_q(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
-function gmp_div_r(GMP|int|string $a, GMP|int|string $b, int $round = GMP_ROUND_ZERO): GMP {}
+function gmp_div_r(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
/** @alias gmp_div_q */
-function gmp_div(GMP|int|string $a, GMP|int|string $b, int $round = GMP_ROUND_ZERO): GMP {}
+function gmp_div(GMP|int|string $num1, GMP|int|string $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
-function gmp_mod(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_mod(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_divexact(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_divexact(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_neg(GMP|int|string $a): GMP {}
+function gmp_neg(GMP|int|string $num): GMP {}
-function gmp_abs(GMP|int|string $a): GMP {}
+function gmp_abs(GMP|int|string $num): GMP {}
-function gmp_fact(GMP|int|string $a): GMP {}
+function gmp_fact(GMP|int|string $num): GMP {}
-function gmp_sqrt(GMP|int|string $a): GMP {}
+function gmp_sqrt(GMP|int|string $num): GMP {}
-function gmp_sqrtrem(GMP|int|string $a): array {}
+function gmp_sqrtrem(GMP|int|string $num): array {}
-function gmp_root(GMP|int|string $a, int $nth): GMP {}
+function gmp_root(GMP|int|string $num, int $nth): GMP {}
-function gmp_rootrem(GMP|int|string $a, int $nth): array {}
+function gmp_rootrem(GMP|int|string $num, int $nth): array {}
-function gmp_pow(GMP|int|string $base, int $exp): GMP {}
+function gmp_pow(GMP|int|string $num, int $exponent): GMP {}
-function gmp_powm(GMP|int|string $base, GMP|int|string $exp, GMP|int|string $mod): GMP {}
+function gmp_powm(GMP|int|string $num, GMP|int|string $exponent, GMP|int|string $modulus): GMP {}
-function gmp_perfect_square(GMP|int|string $a): bool {}
+function gmp_perfect_square(GMP|int|string $num): bool {}
-function gmp_perfect_power(GMP|int|string $a): bool {}
+function gmp_perfect_power(GMP|int|string $num): bool {}
-function gmp_prob_prime(GMP|int|string $a, int $reps = 10): int {}
+function gmp_prob_prime(GMP|int|string $num, int $repetitions = 10): int {}
-function gmp_gcd(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_gcd(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_gcdext(GMP|int|string $a, GMP|int|string $b): array {}
+function gmp_gcdext(GMP|int|string $num1, GMP|int|string $num2): array {}
-function gmp_lcm(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_invert(GMP|int|string $a, GMP|int|string $b): GMP|false {}
+function gmp_invert(GMP|int|string $num1, GMP|int|string $num2): GMP|false {}
-function gmp_jacobi(GMP|int|string $a, GMP|int|string $b): int {}
+function gmp_jacobi(GMP|int|string $num1, GMP|int|string $num2): int {}
-function gmp_legendre(GMP|int|string $a, GMP|int|string $b): int {}
+function gmp_legendre(GMP|int|string $num1, GMP|int|string $num2): int {}
-function gmp_kronecker(GMP|int|string $a, GMP|int|string $b): int {}
+function gmp_kronecker(GMP|int|string $num1, GMP|int|string $num2): int {}
-function gmp_cmp(GMP|int|string $a, GMP|int|string $b): int {}
+function gmp_cmp(GMP|int|string $num1, GMP|int|string $num2): int {}
-function gmp_sign(GMP|int|string $a): int {}
+function gmp_sign(GMP|int|string $num): int {}
function gmp_random_seed(GMP|int|string $seed): void {}
function gmp_random_range(GMP|int|string $min, GMP|int|string $max): GMP {}
-function gmp_and(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_and(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_or(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_or(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_com(GMP|int|string $a): GMP {}
+function gmp_com(GMP|int|string $num): GMP {}
-function gmp_xor(GMP|int|string $a, GMP|int|string $b): GMP {}
+function gmp_xor(GMP|int|string $num1, GMP|int|string $num2): GMP {}
-function gmp_setbit(GMP $a, int $index, bool $set_clear = true): void {}
+function gmp_setbit(GMP $num, int $index, bool $value = true): void {}
-function gmp_clrbit(GMP $a, int $index): void {}
+function gmp_clrbit(GMP $num, int $index): void {}
-function gmp_testbit(GMP|int|string $a, int $index): bool {}
+function gmp_testbit(GMP|int|string $num, int $index): bool {}
-function gmp_scan0(GMP|int|string $a, int $start): int {}
+function gmp_scan0(GMP|int|string $num1, int $start): int {}
-function gmp_scan1(GMP|int|string $a, int $start): int {}
+function gmp_scan1(GMP|int|string $num1, int $start): int {}
-function gmp_popcount(GMP|int|string $a): int {}
+function gmp_popcount(GMP|int|string $num): int {}
-function gmp_hamdist(GMP|int|string $a, GMP|int|string $b): int {}
+function gmp_hamdist(GMP|int|string $num1, GMP|int|string $num2): int {}
-function gmp_nextprime(GMP|int|string $a): GMP {}
+function gmp_nextprime(GMP|int|string $num): GMP {}
-function gmp_binomial(GMP|int|string $a, int $b): GMP {}
+function gmp_binomial(GMP|int|string $n, int $k): GMP {}
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: fe4ff47c3359705bf2b1a64a882659fabd370bab */
+ * Stub hash: a1eb4fd58c0b2155692611386c77035f1ef11c2c */
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_init, 0, 1, GMP, 0)
- ZEND_ARG_TYPE_MASK(0, number, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_TYPE_MASK(0, num, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, base, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_import, 0, 1, GMP, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, word_size, IS_LONG, 0, "1")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "GMP_MSW_FIRST | GMP_NATIVE_ENDIAN")
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "GMP_MSW_FIRST | GMP_NATIVE_ENDIAN")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_export, 0, 1, IS_STRING, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, gmpnumber, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, word_size, IS_LONG, 0, "1")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "GMP_MSW_FIRST | GMP_NATIVE_ENDIAN")
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "GMP_MSW_FIRST | GMP_NATIVE_ENDIAN")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_intval, 0, 1, IS_LONG, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, gmpnumber, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_strval, 0, 1, IS_STRING, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, gmpnumber, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, base, IS_LONG, 0, "10")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_add, 0, 2, GMP, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_OBJ_TYPE_MASK(0, b, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num2, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
#define arginfo_gmp_sub arginfo_gmp_add
#define arginfo_gmp_mul arginfo_gmp_add
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_div_qr, 0, 2, IS_ARRAY, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_OBJ_TYPE_MASK(0, b, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, round, IS_LONG, 0, "GMP_ROUND_ZERO")
+ ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num2, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, rounding_mode, IS_LONG, 0, "GMP_ROUND_ZERO")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_div_q, 0, 2, GMP, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_OBJ_TYPE_MASK(0, b, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, round, IS_LONG, 0, "GMP_ROUND_ZERO")
+ ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num2, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, rounding_mode, IS_LONG, 0, "GMP_ROUND_ZERO")
ZEND_END_ARG_INFO()
#define arginfo_gmp_div_r arginfo_gmp_div_q
#define arginfo_gmp_divexact arginfo_gmp_add
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_neg, 0, 1, GMP, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
#define arginfo_gmp_abs arginfo_gmp_neg
#define arginfo_gmp_sqrt arginfo_gmp_neg
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_sqrtrem, 0, 1, IS_ARRAY, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_root, 0, 2, GMP, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_ARG_TYPE_INFO(0, nth, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_rootrem, 0, 2, IS_ARRAY, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_ARG_TYPE_INFO(0, nth, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_pow, 0, 2, GMP, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, base, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_TYPE_INFO(0, exp, IS_LONG, 0)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_TYPE_INFO(0, exponent, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_powm, 0, 3, GMP, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, base, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_OBJ_TYPE_MASK(0, exp, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_OBJ_TYPE_MASK(0, mod, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, exponent, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, modulus, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_perfect_square, 0, 1, _IS_BOOL, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
#define arginfo_gmp_perfect_power arginfo_gmp_perfect_square
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_prob_prime, 0, 1, IS_LONG, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, reps, IS_LONG, 0, "10")
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, repetitions, IS_LONG, 0, "10")
ZEND_END_ARG_INFO()
#define arginfo_gmp_gcd arginfo_gmp_add
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_gcdext, 0, 2, IS_ARRAY, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_OBJ_TYPE_MASK(0, b, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num2, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
#define arginfo_gmp_lcm arginfo_gmp_add
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_gmp_invert, 0, 2, GMP, MAY_BE_FALSE)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_OBJ_TYPE_MASK(0, b, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num2, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_jacobi, 0, 2, IS_LONG, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_OBJ_TYPE_MASK(0, b, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num2, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_END_ARG_INFO()
#define arginfo_gmp_legendre arginfo_gmp_jacobi
#define arginfo_gmp_cmp arginfo_gmp_jacobi
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_sign, 0, 1, IS_LONG, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
-ZEND_END_ARG_INFO()
+#define arginfo_gmp_sign arginfo_gmp_intval
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_random_seed, 0, 1, IS_VOID, 0)
ZEND_ARG_OBJ_TYPE_MASK(0, seed, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
#define arginfo_gmp_xor arginfo_gmp_add
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_setbit, 0, 2, IS_VOID, 0)
- ZEND_ARG_OBJ_INFO(0, a, GMP, 0)
+ ZEND_ARG_OBJ_INFO(0, num, GMP, 0)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, set_clear, _IS_BOOL, 0, "true")
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, _IS_BOOL, 0, "true")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_clrbit, 0, 2, IS_VOID, 0)
- ZEND_ARG_OBJ_INFO(0, a, GMP, 0)
+ ZEND_ARG_OBJ_INFO(0, num, GMP, 0)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_testbit, 0, 2, _IS_BOOL, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_scan0, 0, 2, IS_LONG, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_gmp_scan1 arginfo_gmp_scan0
-#define arginfo_gmp_popcount arginfo_gmp_sign
+#define arginfo_gmp_popcount arginfo_gmp_intval
#define arginfo_gmp_hamdist arginfo_gmp_jacobi
#define arginfo_gmp_nextprime arginfo_gmp_neg
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gmp_binomial, 0, 2, GMP, 0)
- ZEND_ARG_OBJ_TYPE_MASK(0, a, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
- ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0)
+ ZEND_ARG_OBJ_TYPE_MASK(0, n, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
+ ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0)
ZEND_END_ARG_INFO()
}
?>
--EXPECT--
-gmp_init(): Argument #1 ($number) is not an integer string
+gmp_init(): Argument #1 ($num) is not an integer string
1234
1234
10011010010
?>
--EXPECT--
-gmp_testbit(): Argument #1 ($a) is not an integer string
+gmp_testbit(): Argument #1 ($num) is not an integer string
echo "Done\n";
?>
--EXPECT--
-gmp_abs(): Argument #1 ($a) is not an integer string
+gmp_abs(): Argument #1 ($num) is not an integer string
string(1) "0"
string(1) "0"
-gmp_abs(): Argument #1 ($a) must be of type GMP|string|int, float given
+gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, float given
string(21) "111111111111111111111"
string(21) "111111111111111111111"
string(1) "0"
-gmp_abs(): Argument #1 ($a) is not an integer string
-gmp_abs(): Argument #1 ($a) is not an integer string
-gmp_abs(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_abs(): Argument #1 ($num) is not an integer string
+gmp_abs(): Argument #1 ($num) is not an integer string
+gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
string(3) "515"
string(4) "3333"
string(4) "4544"
-gmp_and(): Argument #1 ($a) is not an integer string
+gmp_and(): Argument #1 ($num1) is not an integer string
string(4) "1536"
string(15) "424703623692768"
-gmp_and(): Argument #1 ($a) must be of type GMP|string|int, array given
-gmp_and(): Argument #2 ($b) must be of type GMP|string|int, array given
-gmp_and(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_and(): Argument #1 ($num1) must be of type GMP|string|int, array given
+gmp_and(): Argument #2 ($num2) must be of type GMP|string|int, array given
+gmp_and(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
["num"]=>
string(1) "7"
}
-gmp_binomial(): Argument #2 ($b) must be greater than or equal to 0
+gmp_binomial(): Argument #2 ($k) must be greater than or equal to 0
string(7) "1000000"
string(7) "1000000"
string(30) "238462734628347239571822592658"
-gmp_clrbit(): Argument #1 ($a) must be of type GMP, array given
+gmp_clrbit(): Argument #1 ($num) must be of type GMP, array given
Done
int(-1)
bool(true)
int(0)
-gmp_cmp(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_cmp(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
--EXPECT--
string(2) "-1"
string(2) "-1"
-gmp_com(): Argument #1 ($a) is not an integer string
+gmp_com(): Argument #1 ($num) is not an integer string
string(14) "-2394876545679"
string(3) "110"
string(7) "-874654"
string(4) "9875"
string(9) "-98765468"
string(12) "-98765463338"
-gmp_com(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_com(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
["num"]=>
string(1) "0"
}
-gmp_div_q(): Argument #3 ($round) must be one of GMP_ROUND_ZERO, GMP_ROUND_PLUSINF, or GMP_ROUND_MINUSINF
+gmp_div_q(): Argument #3 ($rounding_mode) must be one of GMP_ROUND_ZERO, GMP_ROUND_PLUSINF, or GMP_ROUND_MINUSINF
object(GMP)#1 (1) {
["num"]=>
string(4) "9131"
["num"]=>
string(4) "9131"
}
-gmp_div_q(): Argument #1 ($a) must be of type GMP|string|int, resource given
-gmp_div_q(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_div_q(): Argument #1 ($num1) must be of type GMP|string|int, resource given
+gmp_div_q(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
string(5) "12653"
}
}
-gmp_div_qr(): Argument #3 ($round) must be one of GMP_ROUND_ZERO, GMP_ROUND_PLUSINF, or GMP_ROUND_MINUSINF
+gmp_div_qr(): Argument #3 ($rounding_mode) must be one of GMP_ROUND_ZERO, GMP_ROUND_PLUSINF, or GMP_ROUND_MINUSINF
array(2) {
[0]=>
object(GMP)#4 (1) {
string(2) "10"
}
}
-gmp_div_qr(): Argument #1 ($a) must be of type GMP|string|int, resource given
-gmp_div_qr(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_div_qr(): Argument #1 ($num1) must be of type GMP|string|int, resource given
+gmp_div_qr(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
["num"]=>
string(5) "12653"
}
-gmp_div_r(): Argument #3 ($round) must be one of GMP_ROUND_ZERO, GMP_ROUND_PLUSINF, or GMP_ROUND_MINUSINF
+gmp_div_r(): Argument #3 ($rounding_mode) must be one of GMP_ROUND_ZERO, GMP_ROUND_PLUSINF, or GMP_ROUND_MINUSINF
object(GMP)#2 (1) {
["num"]=>
string(2) "10"
["num"]=>
string(2) "10"
}
-gmp_div_r(): Argument #1 ($a) must be of type GMP|string|int, resource given
-gmp_div_r(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_div_r(): Argument #1 ($num1) must be of type GMP|string|int, resource given
+gmp_div_r(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
bool(true)
gmp_export(): Argument #2 ($word_size) must be greater than or equal to 1
gmp_export(): Argument #2 ($word_size) must be greater than or equal to 1
-gmp_export(): Argument #3 ($options) cannot use multiple word order options
-gmp_export(): Argument #3 ($options) cannot use multiple endian options
+gmp_export(): Argument #3 ($flags) cannot use multiple word order options
+gmp_export(): Argument #3 ($flags) cannot use multiple endian options
?>
--EXPECT--
string(1) "1"
-gmp_fact(): Argument #1 ($a) is not an integer string
+gmp_fact(): Argument #1 ($num) is not an integer string
string(1) "1"
-gmp_fact(): Argument #1 ($a) must be greater than or equal to 0
-gmp_fact(): Argument #1 ($a) must be greater than or equal to 0
+gmp_fact(): Argument #1 ($num) must be greater than or equal to 0
+gmp_fact(): Argument #1 ($num) must be greater than or equal to 0
string(1) "1"
string(19) "2432902008176640000"
string(65) "30414093201713378043612608166064768844377641568960512000000000000"
string(7) "3628800"
string(1) "1"
string(9) "479001600"
-gmp_fact(): Argument #1 ($a) must be greater than or equal to 0
-gmp_fact(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_fact(): Argument #1 ($num) must be greater than or equal to 0
+gmp_fact(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
string(1) "1"
string(3) "195"
string(3) "195"
-gmp_gcdext(): Argument #2 ($b) must be of type GMP|string|int, array given
-gmp_gcdext(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_gcdext(): Argument #2 ($num2) must be of type GMP|string|int, array given
+gmp_gcdext(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
int(43)
int(0)
int(26)
-gmp_hamdist(): Argument #2 ($b) must be of type GMP|string|int, array given
-gmp_hamdist(): Argument #1 ($a) must be of type GMP|string|int, array given
-gmp_hamdist(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_hamdist(): Argument #2 ($num2) must be of type GMP|string|int, array given
+gmp_hamdist(): Argument #1 ($num1) must be of type GMP|string|int, array given
+gmp_hamdist(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
gmp_import(): Argument #1 ($data) must be a multiple of argument #2 ($word_size)
gmp_import(): Argument #1 ($data) must be a multiple of argument #2 ($word_size)
gmp_import(): Argument #1 ($data) must be a multiple of argument #2 ($word_size)
-gmp_import(): Argument #3 ($options) cannot use multiple word order options
-gmp_import(): Argument #3 ($options) cannot use multiple endian options
+gmp_import(): Argument #3 ($flags) cannot use multiple word order options
+gmp_import(): Argument #3 ($flags) cannot use multiple endian options
}
string(8) "98765678"
gmp_init(): Argument #2 ($base) must be between 2 and 62
-gmp_init(): Argument #1 ($number) is not an integer string
-gmp_init(): Argument #1 ($number) is not an integer string
-gmp_init(): Argument #1 ($number) is not an integer string
+gmp_init(): Argument #1 ($num) is not an integer string
+gmp_init(): Argument #1 ($num) is not an integer string
+gmp_init(): Argument #1 ($num) is not an integer string
Done
int(2342344)
int(1)
int(12345678)
-gmp_intval(): Argument #1 ($gmpnumber) is not an integer string
-gmp_intval(): Argument #1 ($gmpnumber) must be of type GMP|string|int, stdClass given
-gmp_intval(): Argument #1 ($gmpnumber) must be of type GMP|string|int, array given
-gmp_intval(): Argument #1 ($gmpnumber) is not an integer string
+gmp_intval(): Argument #1 ($num) is not an integer string
+gmp_intval(): Argument #1 ($num) must be of type GMP|string|int, stdClass given
+gmp_intval(): Argument #1 ($num) must be of type GMP|string|int, array given
+gmp_intval(): Argument #1 ($num) is not an integer string
Done
string(1) "0"
string(22) "3498273496234234523441"
string(1) "1"
-gmp_invert(): Argument #1 ($a) must be of type GMP|string|int, array given
-gmp_invert(): Argument #2 ($b) must be of type GMP|string|int, array given
-gmp_invert(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_invert(): Argument #1 ($num1) must be of type GMP|string|int, array given
+gmp_invert(): Argument #2 ($num2) must be of type GMP|string|int, array given
+gmp_invert(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
string(2) "-1"
string(1) "0"
string(2) "-1"
-gmp_jacobi(): Argument #2 ($b) must be of type GMP|string|int, array given
-gmp_jacobi(): Argument #1 ($a) must be of type GMP|string|int, array given
-gmp_jacobi(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_jacobi(): Argument #2 ($num2) must be of type GMP|string|int, array given
+gmp_jacobi(): Argument #1 ($num1) must be of type GMP|string|int, array given
+gmp_jacobi(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
string(2) "-1"
string(1) "0"
string(2) "-1"
-gmp_legendre(): Argument #2 ($b) must be of type GMP|string|int, array given
-gmp_legendre(): Argument #1 ($a) must be of type GMP|string|int, array given
-gmp_legendre(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_legendre(): Argument #2 ($num2) must be of type GMP|string|int, array given
+gmp_legendre(): Argument #1 ($num1) must be of type GMP|string|int, array given
+gmp_legendre(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
echo "Done\n";
?>
--EXPECT--
-gmp_mod(): Argument #1 ($a) is not an integer string
+gmp_mod(): Argument #1 ($num1) is not an integer string
object(GMP)#2 (1) {
["num"]=>
string(1) "0"
string(1) "0"
}
Modulo by zero
-gmp_mod(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_mod(): Argument #1 ($num1) must be of type GMP|string|int, array given
object(GMP)#4 (1) {
["num"]=>
string(5) "31161"
int(-1)
int(1)
int(1)
-gmp_neg(): Argument #1 ($a) is not an integer string
+gmp_neg(): Argument #1 ($num) is not an integer string
int(0)
int(0)
string(21) "-12345678901234567890"
-gmp_neg(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_neg(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
string(1) "2"
string(4) "1009"
string(6) "100003"
-gmp_nextprime(): Argument #1 ($a) must be of type GMP|string|int, array given
-gmp_nextprime(): Argument #1 ($a) is not an integer string
-gmp_nextprime(): Argument #1 ($a) must be of type GMP|string|int, stdClass given
+gmp_nextprime(): Argument #1 ($num) must be of type GMP|string|int, array given
+gmp_nextprime(): Argument #1 ($num) is not an integer string
+gmp_nextprime(): Argument #1 ($num) must be of type GMP|string|int, stdClass given
Done
string(10) "2342341163"
string(2) "-1"
string(3) "-19"
-gmp_or(): Argument #1 ($a) is not an integer string
+gmp_or(): Argument #1 ($num1) is not an integer string
string(15) "987657876576252"
string(21) "987658441719689394144"
-gmp_or(): Argument #1 ($a) must be of type GMP|string|int, array given
-gmp_or(): Argument #2 ($b) must be of type GMP|string|int, array given
-gmp_or(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_or(): Argument #1 ($num1) must be of type GMP|string|int, array given
+gmp_or(): Argument #2 ($num2) must be of type GMP|string|int, array given
+gmp_or(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
bool(false)
bool(true)
bool(false)
-gmp_perfect_square(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_perfect_square(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
int(31)
int(-1)
int(20)
-gmp_popcount(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_popcount(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
string(5) "-2048"
string(4) "1024"
string(1) "1"
-gmp_pow(): Argument #2 ($exp) must be greater than or equal to 0
+gmp_pow(): Argument #2 ($exponent) must be greater than or equal to 0
string(4) "1024"
string(14) "10240000000000"
string(17) "97656250000000000"
-gmp_pow(): Argument #2 ($exp) must be greater than or equal to 0
+gmp_pow(): Argument #2 ($exponent) must be greater than or equal to 0
string(14) "10240000000000"
string(14) "10240000000000"
-gmp_pow(): Argument #2 ($exp) must be of type int, array given
-gmp_pow(): Argument #1 ($base) must be of type GMP|string|int, array given
+gmp_pow(): Argument #2 ($exponent) must be of type int, array given
+gmp_pow(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
string(3) "371"
Modulo by zero
Modulo by zero
-gmp_powm(): Argument #1 ($base) must be of type GMP|string|int, array given
-gmp_powm(): Argument #2 ($exp) must be of type GMP|string|int, array given
-gmp_powm(): Argument #2 ($exp) must be of type GMP|string|int, TypeError given
-gmp_powm(): Argument #1 ($base) must be of type GMP|string|int, array given
-gmp_powm(): Argument #2 ($exp) must be greater than or equal to 0
+gmp_powm(): Argument #1 ($num) must be of type GMP|string|int, array given
+gmp_powm(): Argument #2 ($exponent) must be of type GMP|string|int, array given
+gmp_powm(): Argument #2 ($exponent) must be of type GMP|string|int, TypeError given
+gmp_powm(): Argument #1 ($num) must be of type GMP|string|int, array given
+gmp_powm(): Argument #2 ($exponent) must be greater than or equal to 0
object(GMP)#6 (1) {
["num"]=>
string(1) "1"
int(0)
int(0)
int(0)
-gmp_prob_prime(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_prob_prime(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
int(5)
int(200)
int(13)
-gmp_scan0(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_scan0(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
int(9)
int(-1)
int(10)
-gmp_scan1(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_scan1(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done
string(12) "100008388608"
string(12) "100000000000"
string(12) "100000000008"
-gmp_setbit(): Argument #1 ($a) must be of type GMP, string given
-gmp_setbit(): Argument #1 ($a) must be of type GMP, array given
+gmp_setbit(): Argument #1 ($num) must be of type GMP, string given
+gmp_setbit(): Argument #1 ($num) must be of type GMP, array given
Done
int(0)
int(1)
int(-1)
-gmp_sign(): Argument #1 ($a) is not an integer string
-gmp_init(): Argument #1 ($number) is not an integer string
-gmp_sign(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_sign(): Argument #1 ($num) is not an integer string
+gmp_init(): Argument #1 ($num) is not an integer string
+gmp_sign(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
echo "Done\n";
?>
--EXPECT--
-gmp_sqrt(): Argument #1 ($a) must be greater than or equal to 0
-gmp_sqrt(): Argument #1 ($a) must be greater than or equal to 0
+gmp_sqrt(): Argument #1 ($num) must be greater than or equal to 0
+gmp_sqrt(): Argument #1 ($num) must be greater than or equal to 0
string(1) "0"
string(1) "1"
string(2) "12"
string(1) "0"
-gmp_sqrt(): Argument #1 ($a) must be greater than or equal to 0
+gmp_sqrt(): Argument #1 ($num) must be greater than or equal to 0
string(2) "27"
-gmp_sqrt(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_sqrt(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
echo "Done\n";
?>
--EXPECT--
-gmp_sqrtrem(): Argument #1 ($a) must be greater than or equal to 0
+gmp_sqrtrem(): Argument #1 ($num) must be greater than or equal to 0
string(1) "0"
string(1) "0"
string(1) "1"
string(1) "0"
string(4) "1000"
string(1) "1"
-gmp_sqrtrem(): Argument #1 ($a) must be greater than or equal to 0
+gmp_sqrtrem(): Argument #1 ($num) must be greater than or equal to 0
string(4) "1000"
string(1) "1"
-gmp_sqrtrem(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_sqrtrem(): Argument #1 ($num) must be of type GMP|string|int, array given
Done
["num"]=>
string(1) "1"
}
-gmp_abs(): Argument #1 ($a) must be of type GMP|string|int, float given
-gmp_abs(): Argument #1 ($a) must be of type GMP|string|int, bool given
-gmp_abs(): Argument #1 ($a) must be of type GMP|string|int, bool given
-gmp_abs(): Argument #1 ($a) must be of type GMP|string|int, null given
-gmp_abs(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, float given
+gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, bool given
+gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, bool given
+gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, null given
+gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, array given
echo "Done\n";
?>
--EXPECT--
-gmp_strval(): Argument #1 ($gmpnumber) is not an integer string
+gmp_strval(): Argument #1 ($num) is not an integer string
gmp_strval(): Argument #2 ($base) must be between 2 and 62, or -2 and -36
-gmp_strval(): Argument #1 ($gmpnumber) must be of type GMP|string|int, resource given
+gmp_strval(): Argument #1 ($num) must be of type GMP|string|int, resource given
string(7) "9765456"
gmp_strval(): Argument #2 ($base) must be between 2 and 62, or -2 and -36
gmp_strval(): Argument #2 ($base) must be between 2 and 62, or -2 and -36
gmp_strval(): Argument #2 ($base) must be between 2 and 62, or -2 and -36
gmp_strval(): Argument #2 ($base) must be between 2 and 62, or -2 and -36
string(8) "-3373333"
-gmp_strval(): Argument #1 ($gmpnumber) must be of type GMP|string|int, array given
-gmp_strval(): Argument #1 ($gmpnumber) must be of type GMP|string|int, stdClass given
+gmp_strval(): Argument #1 ($num) must be of type GMP|string|int, array given
+gmp_strval(): Argument #1 ($num) must be of type GMP|string|int, stdClass given
Done
echo "Done\n";
?>
--EXPECT--
-gmp_sub(): Argument #1 ($a) is not an integer string
-gmp_sub(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_sub(): Argument #1 ($num1) is not an integer string
+gmp_sub(): Argument #1 ($num1) must be of type GMP|string|int, array given
object(GMP)#1 (1) {
["num"]=>
string(2) "-1"
string(5) "10001"
}
string(5) "10001"
-gmp_sub(): Argument #2 ($b) must be of type GMP|string|int, stdClass given
-gmp_sub(): Argument #1 ($a) must be of type GMP|string|int, stdClass given
+gmp_sub(): Argument #2 ($num2) must be of type GMP|string|int, stdClass given
+gmp_sub(): Argument #1 ($num1) must be of type GMP|string|int, stdClass given
Done
string(10) "2342340648"
string(5) "-3334"
string(5) "-4563"
-gmp_xor(): Argument #1 ($a) is not an integer string
+gmp_xor(): Argument #1 ($num1) is not an integer string
string(15) "987657876574716"
string(21) "987658017016065701376"
-gmp_xor(): Argument #1 ($a) must be of type GMP|string|int, array given
-gmp_xor(): Argument #2 ($b) must be of type GMP|string|int, array given
-gmp_xor(): Argument #1 ($a) must be of type GMP|string|int, array given
+gmp_xor(): Argument #1 ($num1) must be of type GMP|string|int, array given
+gmp_xor(): Argument #2 ($num2) must be of type GMP|string|int, array given
+gmp_xor(): Argument #1 ($num1) must be of type GMP|string|int, array given
Done