Skip to content

Commit 74462e6

Browse files
committed
fix: re-add composer bailout
lost trying to play nice with autoformat
1 parent fc0cb75 commit 74462e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

agent/php_execute.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,13 @@ static void nr_execute_handle_autoload(const char* filename,
896896
return;
897897
}
898898

899+
if (NR_PHP_PROCESS_GLOBALS(composer_api_per_process_detection)
900+
&& NR_PHP_PROCESS_GLOBALS(composer_packages_detected)) {
901+
// do nothing if per-process detection is enabled and the flag to track
902+
// detection is true
903+
return;
904+
}
905+
899906
if (!nr_striendswith(STR_AND_LEN(filename), AUTOLOAD_MAGIC_FILE,
900907
AUTOLOAD_MAGIC_FILE_LEN)) {
901908
// not an autoload file

0 commit comments

Comments
 (0)