Skip to content

Commit 406e7d4

Browse files
committed
fix: re-add composer bailout
lost trying to play nice with autoformat
1 parent 979d17b commit 406e7d4

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
@@ -894,6 +894,13 @@ static void nr_execute_handle_autoload(const char* filename,
894894
return;
895895
}
896896

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

0 commit comments

Comments
 (0)