Skip to content

Commit 48980a2

Browse files
authored
fix for HttpClientDataCollector fails if proc_open is disabled via php.ini . Closes #58700
1 parent bb08bce commit 48980a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private function escapePayload(string $payload): string
252252
{
253253
static $useProcess;
254254

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

0 commit comments

Comments
 (0)