Skip to content

Commit 3f9e8c2

Browse files
committed
fix: re-add composer bailout
lost trying to play nice with autoformat
1 parent 41406b8 commit 3f9e8c2

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
@@ -904,6 +904,13 @@ static void nr_execute_handle_autoload(const char* filename,
904904
return;
905905
}
906906

907+
if (NR_PHP_PROCESS_GLOBALS(composer_api_per_process_detection)
908+
&& NR_PHP_PROCESS_GLOBALS(composer_packages_detected)) {
909+
// do nothing if per-process detection is enabled and the flag to track
910+
// detection is true
911+
return;
912+
}
913+
907914
if (!nr_striendswith(STR_AND_LEN(filename), AUTOLOAD_MAGIC_FILE,
908915
AUTOLOAD_MAGIC_FILE_LEN)) {
909916
// not an autoload file

0 commit comments

Comments
 (0)