Skip to content

Commit 956dd9f

Browse files
ZNeumannlavarou
authored andcommitted
fix
1 parent 6a46a5d commit 956dd9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

agent/php_user_instrument.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ static void nr_php_wrap_user_function_internal(nruserfn_t* wraprec TSRMLS_DC) {
284284
/* It could be in a file not yet loaded, no reason to log anything. */
285285
return;
286286
}
287+
#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
287288
wraprec->func = orig_func;
289+
#endif
288290

289291
if (ZEND_USER_FUNCTION != orig_func->type) {
290292
nrl_verbosedebug(NRL_INSTRUMENT, "%s%s%s is not a user function",

0 commit comments

Comments
 (0)