Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZNeumann committed May 15, 2024
1 parent 99fc78f commit 14c1e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions agent/php_user_instrument.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ nruserfn_t* nr_php_add_custom_tracer_named(const char* namestr,
size_t namestrlen) {
nruserfn_t* wraprec;
nruserfn_t* p;
#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
zend_function* orig_func;
zend_observer_fcall_begin_handler *begin_handler;
#endif
Expand Down Expand Up @@ -483,7 +483,7 @@ nruserfn_t* nr_php_add_custom_tracer_named(const char* namestr,
NRP_PHP(wraprec->classname),
(0 == wraprec->classname) ? "" : "::", NRP_PHP(wraprec->funcname));

#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
orig_func = nr_php_wrap_user_function_internal(wraprec TSRMLS_CC);
#else
nr_php_wrap_user_function_internal(wraprec TSRMLS_CC);
Expand Down
4 changes: 2 additions & 2 deletions agent/php_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ nruserfn_t* nr_php_wrap_callable_before_after(
nrspecialfn_t before_callback,
nrspecialfn_t after_callback) {
char* name = NULL;
#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
zend_observer_fcall_begin_handler *begin_handler;
#endif

Expand Down Expand Up @@ -152,7 +152,7 @@ nruserfn_t* nr_php_wrap_callable(zend_function* callable,
nrspecialfn_t callback TSRMLS_DC) {
/* creates a transient wraprec */
nruserfn_t* wraprec = nr_php_add_custom_tracer_callable(callable TSRMLS_CC);
#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
zend_observer_fcall_begin_handler *begin_handler;
#endif

Expand Down

0 comments on commit 14c1e0e

Please sign in to comment.