mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
MFZE1
This commit is contained in:
parent
bc906117bb
commit
91f585744f
@ -871,7 +871,7 @@ ZEND_API int bitwise_or_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
|
||||
result_str[i] |= shorter->value.str.val[i];
|
||||
}
|
||||
if (result==op1) {
|
||||
efree(result->value.str.val);
|
||||
STR_FREE(result->value.str.val);
|
||||
}
|
||||
result->value.str.val = result_str;
|
||||
result->value.str.len = result_len;
|
||||
@ -910,7 +910,7 @@ ZEND_API int bitwise_and_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
|
||||
result_str[i] &= longer->value.str.val[i];
|
||||
}
|
||||
if (result==op1) {
|
||||
efree(result->value.str.val);
|
||||
STR_FREE(result->value.str.val);
|
||||
}
|
||||
result->value.str.val = result_str;
|
||||
result->value.str.len = result_len;
|
||||
@ -951,7 +951,7 @@ ZEND_API int bitwise_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
|
||||
result_str[i] ^= longer->value.str.val[i];
|
||||
}
|
||||
if (result==op1) {
|
||||
efree(result->value.str.val);
|
||||
STR_FREE(result->value.str.val);
|
||||
}
|
||||
result->value.str.val = result_str;
|
||||
result->value.str.len = result_len;
|
||||
@ -1489,12 +1489,12 @@ ZEND_API int increment_function(zval *op1)
|
||||
op1->value.lval = lval+1;
|
||||
op1->type = IS_LONG;
|
||||
}
|
||||
efree(strval);
|
||||
efree(strval); /* should never be empty_string */
|
||||
break;
|
||||
case IS_DOUBLE:
|
||||
op1->value.dval = dval+1;
|
||||
op1->type = IS_DOUBLE;
|
||||
efree(strval);
|
||||
efree(strval); /* should never be empty_string */
|
||||
break;
|
||||
#if 0
|
||||
case FLAG_IS_BC:
|
||||
|
Loading…
Reference in New Issue
Block a user