@@ -27,12 +27,16 @@ static ZEND_COLD void undef_result_after_exception() {
27
27
}
28
28
}
29
29
30
+ static ZEND_COLD void zend_jit_illegal_offset (void )
31
+ {
32
+ zend_type_error ("Illegal offset type" );
33
+ }
34
+
30
35
static ZEND_COLD void zend_jit_illegal_string_offset (zval * offset )
31
36
{
32
37
zend_type_error ("Cannot access offset of type %s on string" , zend_zval_type_name (offset ));
33
38
}
34
39
35
-
36
40
static zend_never_inline zend_function * ZEND_FASTCALL _zend_jit_init_func_run_time_cache (const zend_op_array * op_array ) /* {{{ */
37
41
{
38
42
void * * run_time_cache ;
@@ -408,7 +412,7 @@ static void ZEND_FASTCALL zend_jit_fetch_dim_r_helper(zend_array *ht, zval *dim,
408
412
hval = 1 ;
409
413
goto num_index ;
410
414
default :
411
- zend_jit_illegal_string_offset ( dim );
415
+ zend_jit_illegal_offset ( );
412
416
undef_result_after_exception ();
413
417
return ;
414
418
}
@@ -473,7 +477,7 @@ static void ZEND_FASTCALL zend_jit_fetch_dim_is_helper(zend_array *ht, zval *dim
473
477
hval = 1 ;
474
478
goto num_index ;
475
479
default :
476
- zend_jit_illegal_string_offset ( dim );
480
+ zend_jit_illegal_offset ( );
477
481
undef_result_after_exception ();
478
482
return ;
479
483
}
@@ -603,7 +607,7 @@ static zval* ZEND_FASTCALL zend_jit_fetch_dim_rw_helper(zend_array *ht, zval *di
603
607
hval = 1 ;
604
608
goto num_index ;
605
609
default :
606
- zend_jit_illegal_string_offset ( dim );
610
+ zend_jit_illegal_offset ( );
607
611
undef_result_after_exception ();
608
612
return NULL ;
609
613
}
@@ -676,7 +680,7 @@ static zval* ZEND_FASTCALL zend_jit_fetch_dim_w_helper(zend_array *ht, zval *dim
676
680
hval = 1 ;
677
681
goto num_index ;
678
682
default :
679
- zend_jit_illegal_string_offset ( dim );
683
+ zend_jit_illegal_offset ( );
680
684
undef_result_after_exception ();
681
685
return NULL ;
682
686
}
0 commit comments