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
Some production setups set disable_functions to include var_dump (and exec, shell_exec, phpinfo, etc) for security purposes. This means that var_dump() may not be always be callable. This becomes relevant here:
Symfony version(s) affected
5.4 & others
Description
Some production setups set
disable_functions
to includevar_dump
(andexec
,shell_exec
,phpinfo
, etc) for security purposes. This means thatvar_dump()
may not be always be callable. This becomes relevant here:symfony/src/Symfony/Component/HttpClient/HttpClientTrait.php
Lines 123 to 126 in 2633877
The most common case is that
on_progress
is not set, sois_callable('var_dump')
is the most common pattern.This is a problem from PHP 8.0+ because the behaviour changed for
is_callable('var_dump')
when the function is disabled.How to reproduce
Possible Solution
Perhaps switch
var_dump
to something innocuous likeis_int
?Additional Context
No response
The text was updated successfully, but these errors were encountered: