Skip to content

Commit

Permalink
Fix access of global config
Browse files Browse the repository at this point in the history
Co-authored-by: Bob Weinand <bob.weinand@datadoghq.com>
  • Loading branch information
iamluc and bwoebi authored Sep 17, 2024
1 parent 6d54c56 commit dd25a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/excluded_modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void ddtrace_excluded_modules_startup() {
zend_module_entry *module;

ddtrace_has_excluded_module = false;
bool inject_force = (IS_TRUE == Z_TYPE(zai_config_memoized_entries[DDTRACE_CONFIG_DD_INJECT_FORCE].decoded_value));
bool inject_force = get_global_DD_INJECT_FORCE();

ZEND_HASH_FOREACH_PTR(&module_registry, module) {
char error[DDTRACE_EXCLUDED_MODULES_ERROR_MAX_LEN + 1];
Expand Down

0 comments on commit dd25a41

Please sign in to comment.