@@ -795,7 +795,7 @@ static void float_div(zend_long a, zend_long b, zend_long *r1, zend_long *r2) {
795
795
796
796
static bool zend_inference_calc_binary_op_range (
797
797
const zend_op_array * op_array , const zend_ssa * ssa ,
798
- const zend_op * opline , const zend_ssa_op * ssa_op , zend_uchar opcode , zend_ssa_range * tmp ) {
798
+ const zend_op * opline , const zend_ssa_op * ssa_op , uint8_t opcode , zend_ssa_range * tmp ) {
799
799
zend_long op1_min , op2_min , op1_max , op2_max , t1 , t2 , t3 , t4 ;
800
800
801
801
switch (opcode ) {
@@ -2126,7 +2126,7 @@ ZEND_API uint32_t ZEND_FASTCALL zend_array_type_info(const zval *zv)
2126
2126
}
2127
2127
2128
2128
2129
- ZEND_API uint32_t zend_array_element_type (uint32_t t1 , zend_uchar op_type , int write , int insert )
2129
+ ZEND_API uint32_t zend_array_element_type (uint32_t t1 , uint8_t op_type , int write , int insert )
2130
2130
{
2131
2131
uint32_t tmp = 0 ;
2132
2132
@@ -2188,7 +2188,7 @@ ZEND_API uint32_t zend_array_element_type(uint32_t t1, zend_uchar op_type, int w
2188
2188
}
2189
2189
2190
2190
static uint32_t assign_dim_array_result_type (
2191
- uint32_t arr_type , uint32_t dim_type , uint32_t value_type , zend_uchar dim_op_type ) {
2191
+ uint32_t arr_type , uint32_t dim_type , uint32_t value_type , uint8_t dim_op_type ) {
2192
2192
uint32_t tmp = 0 ;
2193
2193
/* Only add key type if we have a value type. We want to maintain the invariant that a
2194
2194
* key type exists iff a value type exists even in dead code that may use empty types. */
@@ -2233,7 +2233,7 @@ static uint32_t assign_dim_array_result_type(
2233
2233
}
2234
2234
2235
2235
static uint32_t assign_dim_result_type (
2236
- uint32_t arr_type , uint32_t dim_type , uint32_t value_type , zend_uchar dim_op_type ) {
2236
+ uint32_t arr_type , uint32_t dim_type , uint32_t value_type , uint8_t dim_op_type ) {
2237
2237
uint32_t tmp = arr_type & ~(MAY_BE_RC1 |MAY_BE_RCN );
2238
2238
2239
2239
if (arr_type & (MAY_BE_UNDEF |MAY_BE_NULL |MAY_BE_FALSE )) {
@@ -2254,7 +2254,7 @@ static uint32_t assign_dim_result_type(
2254
2254
2255
2255
/* For binary ops that have compound assignment operators */
2256
2256
static uint32_t binary_op_result_type (
2257
- zend_ssa * ssa , zend_uchar opcode , uint32_t t1 , uint32_t t2 , int result_var ,
2257
+ zend_ssa * ssa , uint8_t opcode , uint32_t t1 , uint32_t t2 , int result_var ,
2258
2258
zend_long optimization_level ) {
2259
2259
uint32_t tmp = 0 ;
2260
2260
uint32_t t1_type = (t1 & MAY_BE_ANY ) | (t1 & MAY_BE_UNDEF ? MAY_BE_NULL : 0 );
@@ -3602,7 +3602,7 @@ static zend_always_inline zend_result _zend_update_type_info(
3602
3602
tmp |= key_type | MAY_BE_ARRAY | MAY_BE_ARRAY_OF_NULL ;
3603
3603
}
3604
3604
while (j >= 0 ) {
3605
- zend_uchar opcode ;
3605
+ uint8_t opcode ;
3606
3606
3607
3607
if (!ssa_opcodes ) {
3608
3608
if (j != (opline - op_array -> opcodes ) + 1 ) {
@@ -4262,7 +4262,7 @@ static bool can_convert_to_double(
4262
4262
return 0 ;
4263
4263
}
4264
4264
} else {
4265
- zend_uchar opcode = opline -> opcode ;
4265
+ uint8_t opcode = opline -> opcode ;
4266
4266
4267
4267
if (opcode == ZEND_ASSIGN_OP ) {
4268
4268
opcode = opline -> extended_value ;
0 commit comments