@@ -64,7 +64,7 @@ nruserfn_t* nr_php_wrap_callable_before_after(
6464 nrspecialfn_t before_callback ,
6565 nrspecialfn_t after_callback ) {
6666 char * name = NULL ;
67- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
67+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
6868 zend_observer_fcall_begin_handler * begin_handler ;
6969#endif
7070
@@ -83,7 +83,7 @@ nruserfn_t* nr_php_wrap_callable_before_after(
8383 if (nrl_should_print (NRL_VERBOSEDEBUG , NRL_INSTRUMENT ) && NULL != name ) {
8484 nr_free (name );
8585 }
86- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
86+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
8787 if (callable ) {
8888 // Before messing with our handlers, we must ensure that the observer fields of the function are initialized
8989 begin_handler = (zend_observer_fcall_begin_handler * )& ZEND_OP_ARRAY_EXTENSION ((& (callable )-> common ), zend_observer_fcall_op_array_extension );
@@ -152,7 +152,7 @@ nruserfn_t* nr_php_wrap_callable(zend_function* callable,
152152 nrspecialfn_t callback TSRMLS_DC ) {
153153 /* creates a transient wraprec */
154154 nruserfn_t * wraprec = nr_php_add_custom_tracer_callable (callable TSRMLS_CC );
155- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
155+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
156156 zend_observer_fcall_begin_handler * begin_handler ;
157157#endif
158158
@@ -165,7 +165,7 @@ nruserfn_t* nr_php_wrap_callable(zend_function* callable,
165165 __func__ );
166166 } else {
167167 wraprec -> special_instrumentation = callback ;
168- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
168+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
169169 if (callable ) {
170170 // Before messing with our handlers, we must ensure that the observer fields of the function are initialized
171171 begin_handler = (zend_observer_fcall_begin_handler * )& ZEND_OP_ARRAY_EXTENSION ((& (callable )-> common ), zend_observer_fcall_op_array_extension );
0 commit comments