From e9b08469ecd82b5416c3dd9988457530058c1746 Mon Sep 17 00:00:00 2001 From: "Dr. Gianluigi \"Zane\" Zanettini" Date: Tue, 29 Oct 2024 09:30:25 +0100 Subject: [PATCH] fix for HttpClientDataCollector fails if proc_open is disabled via php.ini . Closes #58700 --- DataCollector/HttpClientDataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataCollector/HttpClientDataCollector.php b/DataCollector/HttpClientDataCollector.php index 8e85462..8afddcb 100644 --- a/DataCollector/HttpClientDataCollector.php +++ b/DataCollector/HttpClientDataCollector.php @@ -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(); }