Skip to content

Commit

Permalink
fix 8.4 segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Sep 7, 2024
1 parent 23650c6 commit 8eca255
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/otel_observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "php_opentelemetry.h"

static int op_array_extension = -1;
static int internal_function_extension = -1;

const char *withspan_fqn_lc = "opentelemetry\\api\\instrumentation\\withspan";
const char *spanattribute_fqn_lc =
Expand Down Expand Up @@ -1149,5 +1150,7 @@ void opentelemetry_observer_init(INIT_FUNC_ARGS) {
zend_observer_fcall_register(observer_fcall_init);
op_array_extension =
zend_get_op_array_extension_handle("opentelemetry");
internal_function_extension =
zend_get_internal_function_extension_handle("opentelemetry");
}
}

0 comments on commit 8eca255

Please sign in to comment.