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
As of right now, Runtime::getCurrentSettings() parses php.ini files respecting section headers using the optional $process_sections parameter of parse_ini_file(), however, these section headers are then later ignored when comparing the ini file's values to the value retrieved by ini_get(). This erroneously causes some ini values that have been overridden via the command line to be ignored and don't get passed through if they either don't exist in the ini file or are under a section header:
Additionally, I believe if (isset($config[$value]) && $set != $config[$value])
should be changed to if (!isset($config[$value]) || $set != $config[$value])
as otherwise, values not set in php.ini but set through the command line would also not be passed through.
The text was updated successfully, but these errors were encountered:
As of right now,
Runtime::getCurrentSettings()
parses php.ini files respecting section headers using the optional$process_sections
parameter ofparse_ini_file()
, however, these section headers are then later ignored when comparing the ini file's values to the value retrieved byini_get()
. This erroneously causes some ini values that have been overridden via the command line to be ignored and don't get passed through if they either don't exist in the ini file or are under a section header:$config = parse_ini_file($ini, true)
results in$config = parse_ini_file($ini)
results inAdditionally, I believe
if (isset($config[$value]) && $set != $config[$value])
should be changed to
if (!isset($config[$value]) || $set != $config[$value])
as otherwise, values not set in php.ini but set through the command line would also not be passed through.
The text was updated successfully, but these errors were encountered: