Skip to content

Commit 9d72ffd

Browse files
ZNeumannlavarou
authored andcommitted
fix
1 parent 1e7944e commit 9d72ffd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

agent/php_user_instrument.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ nruserfn_t* nr_php_add_custom_tracer_named(const char* namestr,
450450
size_t namestrlen) {
451451
nruserfn_t* wraprec;
452452
nruserfn_t* p;
453-
#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
453+
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
454454
zend_function* orig_func;
455455
zend_observer_fcall_begin_handler *begin_handler;
456456
#endif
@@ -483,7 +483,7 @@ nruserfn_t* nr_php_add_custom_tracer_named(const char* namestr,
483483
NRP_PHP(wraprec->classname),
484484
(0 == wraprec->classname) ? "" : "::", NRP_PHP(wraprec->funcname));
485485

486-
#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
486+
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
487487
orig_func = nr_php_wrap_user_function_internal(wraprec TSRMLS_CC);
488488
#else
489489
nr_php_wrap_user_function_internal(wraprec TSRMLS_CC);

agent/php_wrapper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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_2_X_API_NO
87+
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
8888
zend_observer_fcall_begin_handler *begin_handler;
8989
#endif
9090

@@ -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_2_X_API_NO
175+
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
176176
zend_observer_fcall_begin_handler *begin_handler;
177177
#endif
178178

0 commit comments

Comments
 (0)