Skip to content

Commit 429a75d

Browse files
Fixes
1 parent 4f29cbe commit 429a75d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6211,7 +6211,7 @@ ZEND_API zend_bool zend_binary_op_produces_numeric_string_error(uint32_t opcode,
62116211
}
62126212

62136213
/* While basic arithmetic operators always produce numeric string errors,
6214-
* bitwise operators only produce errors when *both* operands are strings */
6214+
* bitwise operators don't produce errors if both operands are strings */
62156215
if ((opcode == ZEND_BW_OR || opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR)
62166216
&& Z_TYPE_P(op1) == IS_STRING && Z_TYPE_P(op2) == IS_STRING) {
62176217
return 0;

Zend/zend_operators.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,6 @@ static zend_always_inline zend_long ZEND_FASTCALL _zval_get_long_func_ex(zval *o
779779
return zend_dval_to_lval_cap(dval);
780780
}
781781
}
782-
return ZEND_STRTOL(Z_STRVAL_P(op), NULL, 10);
783782
case IS_ARRAY:
784783
return zend_hash_num_elements(Z_ARRVAL_P(op)) ? 1 : 0;
785784
case IS_OBJECT:

0 commit comments

Comments
 (0)