@@ -2060,13 +2060,13 @@ static zend_always_inline zval *zend_fetch_dimension_address_inner(HashTable *ht
2060
2060
}
2061
2061
} else if (EXPECTED (Z_TYPE_P (dim ) == IS_STRING )) {
2062
2062
offset_key = Z_STR_P (dim );
2063
- if (dim_type != IS_CONST ) {
2063
+ if (ZEND_CONST_COND ( dim_type != IS_CONST , 1 ) ) {
2064
2064
if (ZEND_HANDLE_NUMERIC (offset_key , hval )) {
2065
2065
goto num_index ;
2066
2066
}
2067
2067
}
2068
2068
str_index :
2069
- retval = zend_hash_find_ex (ht , offset_key , dim_type == IS_CONST );
2069
+ retval = zend_hash_find_ex (ht , offset_key , ZEND_CONST_COND ( dim_type == IS_CONST , 0 ) );
2070
2070
if (retval ) {
2071
2071
/* support for $GLOBALS[...] */
2072
2072
if (UNEXPECTED (Z_TYPE_P (retval ) == IS_INDIRECT )) {
@@ -2201,7 +2201,7 @@ static zend_always_inline void zend_fetch_dimension_address(zval *result, zval *
2201
2201
}
2202
2202
ZVAL_ERROR (result );
2203
2203
} else if (EXPECTED (Z_TYPE_P (container ) == IS_OBJECT )) {
2204
- if (/* dim_type == IS_CV &&*/ dim && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2204
+ if (ZEND_CONST_COND ( dim_type == IS_CV , dim != NULL ) && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2205
2205
dim = ZVAL_UNDEFINED_OP2 ();
2206
2206
}
2207
2207
if (dim_type == IS_CONST && Z_EXTRA_P (dim ) == ZEND_EXTRA_VALUE ) {
@@ -2244,7 +2244,7 @@ static zend_always_inline void zend_fetch_dimension_address(zval *result, zval *
2244
2244
} else {
2245
2245
return_null :
2246
2246
/* for read-mode only */
2247
- if (/* dim_type == IS_CV &&*/ dim && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2247
+ if (ZEND_CONST_COND ( dim_type == IS_CV , dim != NULL ) && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2248
2248
ZVAL_UNDEFINED_OP2 ();
2249
2249
}
2250
2250
ZVAL_NULL (result );
@@ -2356,7 +2356,7 @@ static zend_always_inline void zend_fetch_dimension_address_read(zval *result, z
2356
2356
ZVAL_INTERNED_STR (result , ZSTR_CHAR (c ));
2357
2357
}
2358
2358
} else if (EXPECTED (Z_TYPE_P (container ) == IS_OBJECT )) {
2359
- if (/* dim_type == IS_CV &&*/ UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2359
+ if (ZEND_CONST_COND ( dim_type == IS_CV , 1 ) && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2360
2360
dim = ZVAL_UNDEFINED_OP2 ();
2361
2361
}
2362
2362
if (dim_type == IS_CONST && Z_EXTRA_P (dim ) == ZEND_EXTRA_VALUE ) {
@@ -2378,7 +2378,7 @@ static zend_always_inline void zend_fetch_dimension_address_read(zval *result, z
2378
2378
if (type != BP_VAR_IS && UNEXPECTED (Z_TYPE_P (container ) == IS_UNDEF )) {
2379
2379
container = ZVAL_UNDEFINED_OP1 ();
2380
2380
}
2381
- if (/* dim_type == IS_CV &&*/ UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2381
+ if (ZEND_CONST_COND ( dim_type == IS_CV , 1 ) && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2382
2382
ZVAL_UNDEFINED_OP2 ();
2383
2383
}
2384
2384
if (!is_list && type != BP_VAR_IS ) {
0 commit comments