Skip to content

Commit efaa6a8

Browse files
committed
Fix ZPP arg slot used for binary ops
1 parent cf10074 commit efaa6a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gmp/gmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static zend_result binop_operator_helper(gmp_binary_op_t gmp_op, zval *return_va
299299
}
300300
return FAILURE;
301301
}
302-
if (!gmp_zend_parse_arg_into_mpz_ex(op2, &gmp_op2, 1, true)) {
302+
if (!gmp_zend_parse_arg_into_mpz_ex(op2, &gmp_op2, 2, true)) {
303303
if (!EG(exception)) {
304304
zend_type_error("Number must be of type GMP|string|int, %s given", zend_zval_value_name(op2));
305305
}

0 commit comments

Comments
 (0)