You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #46700 [HttpClient] Prevent "Fatal error" in data collector (fmata)
This PR was merged into the 6.1 branch.
Discussion
----------
[HttpClient] Prevent "Fatal error" in data collector
| Q | A
| ------------- | ---
| Branch? | 6.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #46604
| License | MIT
Since "copy as cURL" has been added in Profiler for HttpClient usage, when payloads exceed the size allowed by escapeshellarg() we have a Fatal error 😞
The right allowed size depends on OS and is not leaked in PHP land so I prefer to be conservative and allow the lower usual value as explained in PHP source code https://github.com/php/php-src/blob/9458f5f2c8a8e3d6c65cc181747a5a75654b7c6e/ext/standard/exec.c#L77
I only added check where I think it's relevant.
Commits
-------
601ef63f46 [HttpClient] Prevent "Fatal error" on escapeshellarg() call when the size of its argument is big
0 commit comments