Skip to content

Commit 99fc78f

Browse files
committed
try not using zend lookup
1 parent 3956a3f commit 99fc78f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

agent/php_user_instrument.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ nruserfn_t* nr_php_add_custom_tracer_named(const char* namestr,
493493
* non-transients to be freed when the linked list is disposed of which is at
494494
* module shutdown */
495495
nr_php_add_custom_tracer_common(wraprec);
496-
#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
496+
#if ZEND_MODULE_API_NO >= ZEND_8_3_X_API_NO
497497
if (orig_func) {
498498
// Before messing with our handlers, we must ensure that the observer fields of the function are initialized
499499
begin_handler = (zend_observer_fcall_begin_handler *)&ZEND_OP_ARRAY_EXTENSION((&(orig_func)->common), zend_observer_fcall_op_array_extension);

agent/php_wrapper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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_2_X_API_NO
86+
#if ZEND_MODULE_API_NO >= ZEND_8_3_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);
@@ -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_2_X_API_NO
168+
#if ZEND_MODULE_API_NO >= ZEND_8_3_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

Comments
 (0)