Skip to content

Commit 605f459

Browse files
committed
fourth round of fixes
Fix build for PHPs <= 7.4 - the name of variable pointing to linked list of wraprecs for PHPs <= 7.4 is `nr_wrapped_user_functions`.
1 parent 033303c commit 605f459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/php_user_instrument.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ void nr_php_remove_transient_user_instrumentation(void) {
617617
*/
618618
void nr_php_add_user_instrumentation(TSRMLS_D) {
619619
#if ZEND_MODULE_API_NO < ZEND_8_0_X_API_NO
620-
nruserfn_t* p = nr_named_wraprecs;
620+
nruserfn_t* p = nr_wrapped_user_functions;
621621

622622
while (0 != p) {
623623
if ((0 == p->is_wrapped) && (0 == p->is_disabled)) {
@@ -683,7 +683,7 @@ void nr_php_destroy_user_wrap_records(void) {
683683
nr_php_user_wraprec_destroy(&wraprec);
684684
}
685685

686-
nr_named_wraprecs = NULL;
686+
nr_wrapped_user_functions = NULL;
687687
#else
688688
nr_php_user_instrument_wraprec_hashmap_destroy();
689689
#endif

0 commit comments

Comments
 (0)