Skip to content

Commit

Permalink
fix for HttpClientDataCollector fails if proc_open is disabled via ph…
Browse files Browse the repository at this point in the history
…p.ini . Closes #58700
  • Loading branch information
ZaneCEO authored Oct 29, 2024
1 parent 510c510 commit e9b0846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataCollector/HttpClientDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private function escapePayload(string $payload): string
{
static $useProcess;

if ($useProcess ??= class_exists(Process::class)) {
if ($useProcess ??= function_exists('proc_open') && class_exists(Process::class)) {
return (new Process([$payload]))->getCommandLine();
}

Expand Down

0 comments on commit e9b0846

Please sign in to comment.