diff --git a/agent/php_user_instrument.c b/agent/php_user_instrument.c index b607e24eb..3e91d13f2 100644 --- a/agent/php_user_instrument.c +++ b/agent/php_user_instrument.c @@ -450,7 +450,7 @@ nruserfn_t* nr_php_add_custom_tracer_named(const char* namestr, size_t namestrlen) { nruserfn_t* wraprec; nruserfn_t* p; -#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO +#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO zend_function* orig_func; zend_observer_fcall_begin_handler *begin_handler; #endif @@ -483,7 +483,7 @@ nruserfn_t* nr_php_add_custom_tracer_named(const char* namestr, NRP_PHP(wraprec->classname), (0 == wraprec->classname) ? "" : "::", NRP_PHP(wraprec->funcname)); -#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO +#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO orig_func = nr_php_wrap_user_function_internal(wraprec TSRMLS_CC); #else nr_php_wrap_user_function_internal(wraprec TSRMLS_CC); diff --git a/agent/php_wrapper.c b/agent/php_wrapper.c index bbdb3356e..f9867d0c8 100644 --- a/agent/php_wrapper.c +++ b/agent/php_wrapper.c @@ -64,7 +64,7 @@ nruserfn_t* nr_php_wrap_callable_before_after( nrspecialfn_t before_callback, nrspecialfn_t after_callback) { char* name = NULL; -#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO +#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO zend_observer_fcall_begin_handler *begin_handler; #endif @@ -152,7 +152,7 @@ nruserfn_t* nr_php_wrap_callable(zend_function* callable, nrspecialfn_t callback TSRMLS_DC) { /* creates a transient wraprec */ nruserfn_t* wraprec = nr_php_add_custom_tracer_callable(callable TSRMLS_CC); -#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO +#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO zend_observer_fcall_begin_handler *begin_handler; #endif