@@ -562,7 +562,7 @@ static void float_div(zend_long a, zend_long b, zend_long *r1, zend_long *r2) {
562
562
563
563
static bool zend_inference_calc_binary_op_range (
564
564
const zend_op_array * op_array , const zend_ssa * ssa ,
565
- const zend_op * opline , const zend_ssa_op * ssa_op , zend_uchar opcode , zend_ssa_range * tmp ) {
565
+ const zend_op * opline , const zend_ssa_op * ssa_op , uint8_t opcode , zend_ssa_range * tmp ) {
566
566
zend_long op1_min , op2_min , op1_max , op2_max , t1 , t2 , t3 , t4 ;
567
567
568
568
switch (opcode ) {
@@ -1881,7 +1881,7 @@ ZEND_API uint32_t ZEND_FASTCALL zend_array_type_info(const zval *zv)
1881
1881
}
1882
1882
1883
1883
1884
- ZEND_API uint32_t zend_array_element_type (uint32_t t1 , zend_uchar op_type , int write , int insert )
1884
+ ZEND_API uint32_t zend_array_element_type (uint32_t t1 , uint8_t op_type , int write , int insert )
1885
1885
{
1886
1886
uint32_t tmp = 0 ;
1887
1887
@@ -1943,7 +1943,7 @@ ZEND_API uint32_t zend_array_element_type(uint32_t t1, zend_uchar op_type, int w
1943
1943
}
1944
1944
1945
1945
static uint32_t assign_dim_array_result_type (
1946
- uint32_t arr_type , uint32_t dim_type , uint32_t value_type , zend_uchar dim_op_type ) {
1946
+ uint32_t arr_type , uint32_t dim_type , uint32_t value_type , uint8_t dim_op_type ) {
1947
1947
uint32_t tmp = 0 ;
1948
1948
/* Only add key type if we have a value type. We want to maintain the invariant that a
1949
1949
* key type exists iff a value type exists even in dead code that may use empty types. */
@@ -1987,7 +1987,7 @@ static uint32_t assign_dim_array_result_type(
1987
1987
}
1988
1988
1989
1989
static uint32_t assign_dim_result_type (
1990
- uint32_t arr_type , uint32_t dim_type , uint32_t value_type , zend_uchar dim_op_type ) {
1990
+ uint32_t arr_type , uint32_t dim_type , uint32_t value_type , uint8_t dim_op_type ) {
1991
1991
uint32_t tmp = arr_type & ~(MAY_BE_RC1 |MAY_BE_RCN );
1992
1992
1993
1993
if (arr_type & (MAY_BE_UNDEF |MAY_BE_NULL |MAY_BE_FALSE )) {
@@ -2008,7 +2008,7 @@ static uint32_t assign_dim_result_type(
2008
2008
2009
2009
/* For binary ops that have compound assignment operators */
2010
2010
static uint32_t binary_op_result_type (
2011
- zend_ssa * ssa , zend_uchar opcode , uint32_t t1 , uint32_t t2 , int result_var ,
2011
+ zend_ssa * ssa , uint8_t opcode , uint32_t t1 , uint32_t t2 , int result_var ,
2012
2012
zend_long optimization_level ) {
2013
2013
uint32_t tmp = 0 ;
2014
2014
uint32_t t1_type = (t1 & MAY_BE_ANY ) | (t1 & MAY_BE_UNDEF ? MAY_BE_NULL : 0 );
@@ -3335,7 +3335,7 @@ static zend_always_inline zend_result _zend_update_type_info(
3335
3335
tmp |= key_type | MAY_BE_ARRAY | MAY_BE_ARRAY_OF_NULL ;
3336
3336
}
3337
3337
while (j >= 0 ) {
3338
- zend_uchar opcode ;
3338
+ uint8_t opcode ;
3339
3339
3340
3340
if (!ssa_opcodes ) {
3341
3341
ZEND_ASSERT (j == (opline - op_array -> opcodes ) + 1 && "Use must be in next opline" );
@@ -3978,7 +3978,7 @@ static bool can_convert_to_double(
3978
3978
return 0 ;
3979
3979
}
3980
3980
} else {
3981
- zend_uchar opcode = opline -> opcode ;
3981
+ uint8_t opcode = opline -> opcode ;
3982
3982
3983
3983
if (opcode == ZEND_ASSIGN_OP ) {
3984
3984
opcode = opline -> extended_value ;
0 commit comments