Skip to content

Commit 6caf1d4

Browse files
Fixes
1 parent 6dadb1b commit 6caf1d4

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
@@ -6246,7 +6246,7 @@ ZEND_API zend_bool zend_binary_op_produces_numeric_string_error(uint32_t opcode,
62466246
}
62476247

62486248
/* While basic arithmetic operators always produce numeric string errors,
6249-
* bitwise operators only produce errors when *both* operands are strings */
6249+
* bitwise operators don't produce errors if both operands are strings */
62506250
if ((opcode == ZEND_BW_OR || opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR)
62516251
&& Z_TYPE_P(op1) == IS_STRING && Z_TYPE_P(op2) == IS_STRING) {
62526252
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)