@@ -84,7 +84,7 @@ nruserfn_t* nr_php_wrap_callable_before_after(
8484 nrspecialfn_t before_callback ,
8585 nrspecialfn_t after_callback ) {
8686 char * name = NULL ;
87- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
87+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
8888 zend_observer_fcall_begin_handler * begin_handler ;
8989#endif
9090
@@ -103,7 +103,7 @@ nruserfn_t* nr_php_wrap_callable_before_after(
103103 if (nrl_should_print (NRL_VERBOSEDEBUG , NRL_INSTRUMENT ) && NULL != name ) {
104104 nr_free (name );
105105 }
106- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
106+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
107107 if (callable ) {
108108 // Before messing with our handlers, we must ensure that the observer fields of the function are initialized
109109 begin_handler = (zend_observer_fcall_begin_handler * )& ZEND_OP_ARRAY_EXTENSION ((& (callable )-> common ), zend_observer_fcall_op_array_extension );
@@ -172,7 +172,7 @@ nruserfn_t* nr_php_wrap_callable(zend_function* callable,
172172 nrspecialfn_t callback TSRMLS_DC ) {
173173 /* creates a transient wraprec */
174174 nruserfn_t * wraprec = nr_php_add_custom_tracer_callable (callable TSRMLS_CC );
175- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
175+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
176176 zend_observer_fcall_begin_handler * begin_handler ;
177177#endif
178178
@@ -185,7 +185,7 @@ nruserfn_t* nr_php_wrap_callable(zend_function* callable,
185185 __func__ );
186186 } else {
187187 wraprec -> special_instrumentation = callback ;
188- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
188+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
189189 if (callable ) {
190190 // Before messing with our handlers, we must ensure that the observer fields of the function are initialized
191191 begin_handler = (zend_observer_fcall_begin_handler * )& ZEND_OP_ARRAY_EXTENSION ((& (callable )-> common ), zend_observer_fcall_op_array_extension );
0 commit comments