Skip to content

Commit 14c1e0e

Browse files
committed
fix
1 parent 99fc78f commit 14c1e0e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

agent/php_user_instrument.c

+2-2
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -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_2_X_API_NO
67+
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
6868
zend_observer_fcall_begin_handler *begin_handler;
6969
#endif
7070

@@ -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_2_X_API_NO
155+
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
156156
zend_observer_fcall_begin_handler *begin_handler;
157157
#endif
158158

0 commit comments

Comments
 (0)