]> granicus.if.org Git - php/commitdiff
Update gmp+bcmath parameter names
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 24 Sep 2020 13:28:36 +0000 (15:28 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 29 Sep 2020 10:34:16 +0000 (12:34 +0200)
Closes GH-6205.

46 files changed:
ext/bcmath/bcmath.stub.php
ext/bcmath/bcmath_arginfo.h
ext/bcmath/tests/bcsqrt_error1.phpt
ext/bcmath/tests/bug75178.phpt
ext/gmp/gmp.stub.php
ext/gmp/gmp_arginfo.h
ext/gmp/tests/003.phpt
ext/gmp/tests/bug66872.phpt
ext/gmp/tests/gmp_abs.phpt
ext/gmp/tests/gmp_and.phpt
ext/gmp/tests/gmp_binomial.phpt
ext/gmp/tests/gmp_clrbit.phpt
ext/gmp/tests/gmp_cmp.phpt
ext/gmp/tests/gmp_com.phpt
ext/gmp/tests/gmp_div_q.phpt
ext/gmp/tests/gmp_div_qr.phpt
ext/gmp/tests/gmp_div_r.phpt
ext/gmp/tests/gmp_export.phpt
ext/gmp/tests/gmp_fact.phpt
ext/gmp/tests/gmp_gcdext.phpt
ext/gmp/tests/gmp_hamdist.phpt
ext/gmp/tests/gmp_import.phpt
ext/gmp/tests/gmp_init.phpt
ext/gmp/tests/gmp_intval.phpt
ext/gmp/tests/gmp_invert.phpt
ext/gmp/tests/gmp_jacobi.phpt
ext/gmp/tests/gmp_legendre.phpt
ext/gmp/tests/gmp_mod.phpt
ext/gmp/tests/gmp_neg.phpt
ext/gmp/tests/gmp_nextprime.phpt
ext/gmp/tests/gmp_or.phpt
ext/gmp/tests/gmp_perfect_square.phpt
ext/gmp/tests/gmp_popcount.phpt
ext/gmp/tests/gmp_pow.phpt
ext/gmp/tests/gmp_pown.phpt
ext/gmp/tests/gmp_prob_prime.phpt
ext/gmp/tests/gmp_scan0.phpt
ext/gmp/tests/gmp_scan1.phpt
ext/gmp/tests/gmp_setbit.phpt
ext/gmp/tests/gmp_sign.phpt
ext/gmp/tests/gmp_sqrt.phpt
ext/gmp/tests/gmp_sqrtrem.phpt
ext/gmp/tests/gmp_strict_types.phpt
ext/gmp/tests/gmp_strval.phpt
ext/gmp/tests/gmp_sub.phpt
ext/gmp/tests/gmp_xor.phpt

index 97232b0ed712131337f91d7394ea453deaf7d1d1..acd63f000e79c239a60141303bd9927ff5aa7a44 100644 (file)
@@ -2,22 +2,22 @@
 
 /** @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 {}
index 83956366a282236f1733b699655b79df7931367e..3e0104e04c358b1ad82f507e8b5440ab54f53e1e 100644 (file)
@@ -1,9 +1,9 @@
 /* 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()
 
@@ -11,35 +11,31 @@ 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()
 
index 83c85183f4080dbfd2c36a34d6c3546da7add3b0..bdc850f979627f1e6b5c1f51f77bcb8db0ca4210 100644 (file)
@@ -14,4 +14,4 @@ try {
 }
 ?>
 --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
index 48044523840cf7576f27def68cc47e9d23189910..9025e61c73bf7127ea58652c9d6612b1096665f9 100644 (file)
@@ -18,5 +18,5 @@ try {
 }
 ?>
 --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
index 8f2c6ed944fd2dee8346e0a89cf9bbd96d8e5132..729ae37245aa6a300bed8d821a2448a55d2904fb 100644 (file)
@@ -6,76 +6,76 @@ class GMP
 {
 }
 
-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 {}
 
@@ -83,28 +83,28 @@ function gmp_random_bits(int $bits): GMP {}
 
 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 {}
index 9f4a44f6d7954c6e5280cff17ad7d0ee389eb60e..fd341edbb565d71df75d6b0fcb3e7b9bf4c82b6f 100644 (file)
@@ -1,35 +1,35 @@
 /* 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
@@ -37,15 +37,15 @@ ZEND_END_ARG_INFO()
 #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
@@ -57,7 +57,7 @@ ZEND_END_ARG_INFO()
 #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
@@ -67,58 +67,58 @@ ZEND_END_ARG_INFO()
 #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
@@ -127,9 +127,7 @@ ZEND_END_ARG_INFO()
 
 #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)
@@ -153,37 +151,37 @@ ZEND_END_ARG_INFO()
 #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()
 
 
index 7a84d3f8d0151c9ecb8ffee881f4539ab2ea6188..70613eb94b0464afff67926f8eb5d045bc11709e 100644 (file)
@@ -35,7 +35,7 @@ Check for number base recognition
         }
 ?>
 --EXPECT--
-gmp_init(): Argument #1 ($number) is not an integer string
+gmp_init(): Argument #1 ($num) is not an integer string
 1234
 1234
 10011010010
index c44d4c807e8a0f14edd5a1e283f90924771f6620..e4090176de538fdfdfe4964ffb0abfe388825ffa 100644 (file)
@@ -13,4 +13,4 @@ try {
 
 ?>
 --EXPECT--
-gmp_testbit(): Argument #1 ($a) is not an integer string
+gmp_testbit(): Argument #1 ($num) is not an integer string
index 0fb8ba5f1a291da7d5cef9f15348de53b4db234b..57b0dde25c8212871a1f4a909614cfc1353e4c5f 100644 (file)
@@ -44,14 +44,14 @@ try {
 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
index 26ed3dda3761bcbcffe3154266674f60d0bc6cb6..aa40a12aa4b54aadd401583078d64b4a659ec719 100644 (file)
@@ -47,10 +47,10 @@ string(5) "40994"
 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
index b6db19c35cc7c737e41212318f7d0e8ba07da319..eadf175ac9e0a65792f91a2aad4566a506515223 100644 (file)
@@ -67,4 +67,4 @@ object(GMP)#2 (1) {
   ["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
index 5dc0ff4dbb8d9dddba8f63a7d97ca9e8bae8d8c8..7bcf6969e9df3d6f8760f7ad10e3290b4959df1b 100644 (file)
@@ -52,5 +52,5 @@ gmp_clrbit(): Argument #2 ($index) 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
index 35c2796ffaae23755dbe5516b87307c5abf5b13c..45ca865dc6344d6efc1b1d76e72ca76b2ba04599 100644 (file)
@@ -34,5 +34,5 @@ int(1)
 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
index 71f9f39e96a4068b39864092d16ac893e7ef0520..1cc0aae428e4a90401fe04b0b1a6c48f7bfe9e7f 100644 (file)
@@ -33,12 +33,12 @@ echo "Done\n";
 --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
index 08d82c6132c62d76a62fbd338a90e4eac60641b6..a9adeab24ce7d6e9f728eca108338e5a97e024cf 100644 (file)
@@ -51,7 +51,7 @@ object(GMP)#2 (1) {
   ["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"
@@ -76,6 +76,6 @@ object(GMP)#1 (1) {
   ["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
index 03c5facac2a48100bb19e35c5bda8f85c91f5491..a31c39c731cf5557f7d06aa6cbd9cacf1b3a9bac 100644 (file)
@@ -74,7 +74,7 @@ array(2) {
     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) {
@@ -159,6 +159,6 @@ array(2) {
     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
index eab9286fe763bac5cd27cf2d8c7667378d77f82b..2372474bc89cde72de538d03df1a07f509ba56be 100644 (file)
@@ -51,7 +51,7 @@ object(GMP)#3 (1) {
   ["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"
@@ -76,6 +76,6 @@ object(GMP)#3 (1) {
   ["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
index d3ccfb3b1e5fb477f1795703985f7467cc176ebe..6877e5624d6804d701c596d34e648c5605ab33b0 100644 (file)
@@ -78,5 +78,5 @@ try {
 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
index 81f16019f0928ca424932ffc0af5cb319c846fbf..d2b98f78c28c906cd7a0a92eed3eeaeb91d303ed 100644 (file)
@@ -48,16 +48,16 @@ echo "Done\n";
 ?>
 --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
index abab8cdfdcd83e10a060f747ca42eff9d922e556..0f4b23af7d9f91bac2becfc9cb4871ebb29ecd6e 100644 (file)
@@ -63,6 +63,6 @@ string(1) "1"
 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
index c4b28949411fd76a60b07f86fecc77e78a17f56e..8e216e39a080b2d283a314066d7e27efd3943981 100644 (file)
@@ -42,7 +42,7 @@ int(-1)
 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
index 59bf652a1f3cf536032529495c8b694671617570..026ab079d5637385171e6d43d69fcc42860790b5 100644 (file)
@@ -95,5 +95,5 @@ gmp_import(): Argument #2 ($word_size) must be greater than or equal to 1
 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
index b600a020ec7f9476e144e0152963ab54b070401a..045ddc668e38ef3727224a579e2f8760681817ed 100644 (file)
@@ -38,7 +38,7 @@ object(GMP)#1 (1) {
 }
 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
index 9540f7a432ca1c7b4226bc650d00280992372a99..4642d9ec5229e3ef80a32f88f025d3d9e9180c3a 100644 (file)
@@ -44,8 +44,8 @@ int(-2349828)
 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
index b5ab666061a25f3e5840a819cff8db20a127d2b9..888802f25dd65a5cc7cddeb119cc2d4b83ec1ed9 100644 (file)
@@ -53,7 +53,7 @@ string(1) "0"
 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
index 116442457819bae61ac0c15f6e66dfcd7b6a7960..da95b805facece90592b5ad168416f63abd94655 100644 (file)
@@ -56,7 +56,7 @@ string(1) "0"
 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
index 258e453e4de1863c0ab45a160a5a998e65545828..fb8ad0842381175e4538cd1293973d2b80cfd238 100644 (file)
@@ -56,7 +56,7 @@ string(1) "0"
 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
index 90868ab9d99da0819b2d068633f822acc650bb75..a20f871df9561d80a661185aedcef20988d27e5f 100644 (file)
@@ -33,7 +33,7 @@ var_dump(gmp_mod($a, $b));
 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"
@@ -43,7 +43,7 @@ object(GMP)#2 (1) {
   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"
index 5d8e80cd5b62024b1abb6de6dadaff8a8a769ffc..bed25722bb52ee91561ee735fe8df16c46f2ca27 100644 (file)
@@ -36,9 +36,9 @@ int(0)
 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
index e2fa2703cbbc81f55214c59927cc5150a9871c29..7d252aee6598558f40b20d92b5a988aeade7b0ba 100644 (file)
@@ -43,7 +43,7 @@ string(1) "2"
 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
index 5a34a82addf91a98e80728c45834f83f9426065b..75f631e326817eab1579414c7e93da27381a0bba 100644 (file)
@@ -46,10 +46,10 @@ string(6) "517363"
 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
index d6cd09e40ef49091ae7cfefc3f0435adafd9fe97..f96f39091f3de4a30116e2d2d477904a44f1dce0 100644 (file)
@@ -41,5 +41,5 @@ bool(false)
 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
index fa1a6172d4fb61e15dedfa56e5ea397c7c24faf7..ddd1c2434c20ad04f780eac73daf550d805b2086 100644 (file)
@@ -28,5 +28,5 @@ int(10)
 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
index d4d20f2ce796a02637e929d23492afa096822970..ab87e7f0933097b4530c569c4b3cc1b5a277940e 100644 (file)
@@ -49,13 +49,13 @@ string(4) "1024"
 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
index 76d5576e47581f938a3c3c09732bb6f8a86807b6..49bc308e156dca341702212c4190212e05e20db3 100644 (file)
@@ -75,11 +75,11 @@ string(3) "171"
 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"
index efc5cf4e165ae3272eff5a54969d09a1d0da8fe9..be8a8d0f6859f1a080097a8c9477897b6f85af50 100644 (file)
@@ -75,5 +75,5 @@ int(0)
 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
index 017148c0119b06c8970624540c83df562c0f8e55..c949f6a3beef6e55b1a9cf6eb1f3213a2a100249 100644 (file)
@@ -34,5 +34,5 @@ int(0)
 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
index ba480e3e9665e80a70c4bcb896c2e74f72e33527..d625f0cb8634386fb3c27037b6b99b2cacbafb8b 100644 (file)
@@ -34,5 +34,5 @@ int(12)
 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
index 02857c7e52ed945128a6958ce0a61ebb53010f67..6dad79f5d3b4ed3c769f158926ad1e62d7a53876 100644 (file)
@@ -59,6 +59,6 @@ string(1) "7"
 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
index 01567bb5c43f8c3e9dd40e66ea7e46fcc54069f7..7d7e67177c996496a93f2136b8b081f7d454aa90 100644 (file)
@@ -36,7 +36,7 @@ int(1)
 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
index 19a44121b6593c2a881140c75b74a238b0e3cf3b..dcd9c58373d0869581e136ddefd37f5a81ea47a3 100644 (file)
@@ -40,13 +40,13 @@ try {
 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
index 0d63a54ff8e660eefc63d3b78e2f534e92d4c57e..b415711bd4f2eee6cb6186d9eaae957fe8bf6f6c 100644 (file)
@@ -66,7 +66,7 @@ try {
 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"
@@ -83,8 +83,8 @@ string(4) "1000"
 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
index 8a2b5509a5c780ef8b056e078ea5cc2027f64d3b..e697afa67533cf3860c7f840fc9d44e64f7a6bc6 100644 (file)
@@ -48,8 +48,8 @@ object(GMP)#2 (1) {
   ["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
index 234465c294a6be7c96812c3ba9e9c89193ce25fa..3aa3e372a9fa4c4bf8aad375ab5a0c080c1b0ed5 100644 (file)
@@ -65,9 +65,9 @@ try {
 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
@@ -76,6 +76,6 @@ string(8) "-3373333"
 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
index 28a01f86ee640670faf7d8fd7366879e2ac7543a..a1e5a6158305c2ac84debac9bf640eaac4c2c3f7 100644 (file)
@@ -37,8 +37,8 @@ try {
 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"
@@ -49,6 +49,6 @@ object(GMP)#3 (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
index d81b5947fcbdecfca6f1c45c4ef2dc1e206dcbef..eb99f8c99c9ab79fa3d80db9e0b6ff867af4bf92 100644 (file)
@@ -46,10 +46,10 @@ string(6) "476369"
 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