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
There is a bug in phpList that causes Fatal Errors on PHP servers that have been hardened following common best-practices
ini_set('session.name','phpListSession');
This line causes a PHP Fatal error on hardened systems with the ini_set function disabled.
PHP Fatal error: Uncaught Error: Call to undefined function ini_set() in /path/to/public_html/lists/admin/init.php:17\\nStack trace:\\n#0 /path/to/public_html/lists/index.php(31): require_once()\\n#1 {main}\\n thrown in /path/to/public_html/lists/admin/init.php on line 17
Why this matters
For security reasons, orgs frequently configure php.ini to be hardened by adding many dangerous functions to the disable_functions variable in the php.ini file. For example, it's common to disable the exec function
disable_functions = exec
Of course, if a php script could modify the php configuration, then it would defeat any hardening done by setting disable_functions. As such, it's common to add ini_set to the disable_functions
disable_functions = exec, ini_set
Solution
To fix the PHP Fatal error, phpList should always check to see if the ini_set function exists before attempting to call it
There is a bug in phpList that causes Fatal Errors on PHP servers that have been hardened following common best-practices
This line causes a PHP Fatal error on hardened systems with the
ini_set
function disabled.Why this matters
For security reasons, orgs frequently configure
php.ini
to be hardened by adding many dangerous functions to thedisable_functions
variable in thephp.ini
file. For example, it's common to disable theexec
functionOf course, if a php script could modify the php configuration, then it would defeat any hardening done by setting
disable_functions
. As such, it's common to addini_set
to thedisable_functions
Solution
To fix the PHP Fatal error, phpList should always check to see if the
ini_set
function exists before attempting to call itThe text was updated successfully, but these errors were encountered: