@@ -2088,13 +2088,13 @@ static zend_always_inline zval *zend_fetch_dimension_address_inner(HashTable *ht
2088
2088
}
2089
2089
} else if (EXPECTED (Z_TYPE_P (dim ) == IS_STRING )) {
2090
2090
offset_key = Z_STR_P (dim );
2091
- if (dim_type != IS_CONST ) {
2091
+ if (ZEND_CONST_COND ( dim_type != IS_CONST , 1 ) ) {
2092
2092
if (ZEND_HANDLE_NUMERIC (offset_key , hval )) {
2093
2093
goto num_index ;
2094
2094
}
2095
2095
}
2096
2096
str_index :
2097
- retval = zend_hash_find_ex (ht , offset_key , dim_type == IS_CONST );
2097
+ retval = zend_hash_find_ex (ht , offset_key , ZEND_CONST_COND ( dim_type == IS_CONST , 0 ) );
2098
2098
if (retval ) {
2099
2099
/* support for $GLOBALS[...] */
2100
2100
if (UNEXPECTED (Z_TYPE_P (retval ) == IS_INDIRECT )) {
@@ -2229,7 +2229,7 @@ static zend_always_inline void zend_fetch_dimension_address(zval *result, zval *
2229
2229
}
2230
2230
ZVAL_ERROR (result );
2231
2231
} else if (EXPECTED (Z_TYPE_P (container ) == IS_OBJECT )) {
2232
- if (/* dim_type == IS_CV &&*/ dim && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2232
+ if (ZEND_CONST_COND ( dim_type == IS_CV , dim != NULL ) && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2233
2233
dim = ZVAL_UNDEFINED_OP2 ();
2234
2234
}
2235
2235
if (dim_type == IS_CONST && Z_EXTRA_P (dim ) == ZEND_EXTRA_VALUE ) {
@@ -2272,7 +2272,7 @@ static zend_always_inline void zend_fetch_dimension_address(zval *result, zval *
2272
2272
} else {
2273
2273
return_null :
2274
2274
/* for read-mode only */
2275
- if (/* dim_type == IS_CV &&*/ dim && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2275
+ if (ZEND_CONST_COND ( dim_type == IS_CV , dim != NULL ) && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2276
2276
ZVAL_UNDEFINED_OP2 ();
2277
2277
}
2278
2278
ZVAL_NULL (result );
@@ -2384,7 +2384,7 @@ static zend_always_inline void zend_fetch_dimension_address_read(zval *result, z
2384
2384
ZVAL_INTERNED_STR (result , ZSTR_CHAR (c ));
2385
2385
}
2386
2386
} else if (EXPECTED (Z_TYPE_P (container ) == IS_OBJECT )) {
2387
- if (/* dim_type == IS_CV &&*/ UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2387
+ if (ZEND_CONST_COND ( dim_type == IS_CV , 1 ) && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2388
2388
dim = ZVAL_UNDEFINED_OP2 ();
2389
2389
}
2390
2390
if (dim_type == IS_CONST && Z_EXTRA_P (dim ) == ZEND_EXTRA_VALUE ) {
@@ -2406,7 +2406,7 @@ static zend_always_inline void zend_fetch_dimension_address_read(zval *result, z
2406
2406
if (type != BP_VAR_IS && UNEXPECTED (Z_TYPE_P (container ) == IS_UNDEF )) {
2407
2407
container = ZVAL_UNDEFINED_OP1 ();
2408
2408
}
2409
- if (/* dim_type == IS_CV &&*/ UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2409
+ if (ZEND_CONST_COND ( dim_type == IS_CV , 1 ) && UNEXPECTED (Z_TYPE_P (dim ) == IS_UNDEF )) {
2410
2410
ZVAL_UNDEFINED_OP2 ();
2411
2411
}
2412
2412
if (!is_list && type != BP_VAR_IS ) {
0 commit comments