@@ -64,7 +64,7 @@ nruserfn_t* nr_php_wrap_callable_before_after(
64
64
nrspecialfn_t before_callback ,
65
65
nrspecialfn_t after_callback ) {
66
66
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
68
68
zend_observer_fcall_begin_handler * begin_handler ;
69
69
#endif
70
70
@@ -83,7 +83,7 @@ nruserfn_t* nr_php_wrap_callable_before_after(
83
83
if (nrl_should_print (NRL_VERBOSEDEBUG , NRL_INSTRUMENT ) && NULL != name ) {
84
84
nr_free (name );
85
85
}
86
- #if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
86
+ #if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
87
87
if (callable ) {
88
88
// Before messing with our handlers, we must ensure that the observer fields of the function are initialized
89
89
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,
152
152
nrspecialfn_t callback TSRMLS_DC ) {
153
153
/* creates a transient wraprec */
154
154
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
156
156
zend_observer_fcall_begin_handler * begin_handler ;
157
157
#endif
158
158
@@ -165,7 +165,7 @@ nruserfn_t* nr_php_wrap_callable(zend_function* callable,
165
165
__func__ );
166
166
} else {
167
167
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
169
169
if (callable ) {
170
170
// Before messing with our handlers, we must ensure that the observer fields of the function are initialized
171
171
begin_handler = (zend_observer_fcall_begin_handler * )& ZEND_OP_ARRAY_EXTENSION ((& (callable )-> common ), zend_observer_fcall_op_array_extension );
0 commit comments