@@ -371,7 +371,11 @@ int zephir_call_user_function(
371
371
372
372
char * is_callable_error = NULL ;
373
373
zend_execute_data * frame = EG (current_execute_data );
374
+ #if PHP_VERSION_ID >= 80200
375
+ if (obj_ce || !zend_is_callable_at_frame (& callable , fci .object , frame , IS_CALLABLE_SUPPRESS_DEPRECATIONS , & fcic , & is_callable_error )) {
376
+ #else
374
377
if (obj_ce || !zend_is_callable_at_frame (& callable , fci .object , frame , 0 , & fcic , & is_callable_error )) {
378
+ #endif
375
379
if (is_callable_error ) {
376
380
zend_error (E_WARNING , "%s" , is_callable_error );
377
381
efree (is_callable_error );
@@ -591,7 +595,11 @@ int zephir_call_user_func_array_noex(zval *return_value, zval *handler, zval *pa
591
595
}
592
596
593
597
zend_execute_data * frame = EG (current_execute_data );
598
+ #if PHP_VERSION_ID >= 80200
599
+ if (!zend_is_callable_at_frame (handler , NULL , frame , IS_CALLABLE_SUPPRESS_DEPRECATIONS , & fci_cache , & is_callable_error )) {
600
+ #else
594
601
if (!zend_is_callable_at_frame (handler , NULL , frame , 0 , & fci_cache , & is_callable_error )) {
602
+ #endif
595
603
if (is_callable_error ) {
596
604
zend_error (E_WARNING , "%s" , is_callable_error );
597
605
efree (is_callable_error );
0 commit comments