Bug #93221
openEnvironment status: error message for disable_functions ist not helping
0%
Description
My hoster currently has proc_open included in the disable_functions, this causes errors with the new Symfony mailer.
They do show up in the error log:
Core: Error handler (FE): PHP Warning: proc_open() has been disabled for security reasons in /var/www/foo/bar/vendor/symfony/mailer/Transport/Smtp/Stream/ProcessStream.php line 41
However, the error message from the Environment module does not help at all
Some PHP functions disabled
disable_functions=passthru shell_exec system proc_open popen parse_ini_file show_source These function(s) are disabled. TYPO3 uses some of those, so there might be trouble. TYPO3 is designed to use the default set of PHP functions plus some common extensions. Possibly these functions are disabled due to security considerations and most likely the list would include a function like exec() which is used by TYPO3 at various places. Depending on which exact functions are disabled, some parts of the system may just break without further notice.
I'd expect to get a more detailed information, so i can tell my hoster what to change and why that setting is needed, before i get the first error in the log
Files
Updated by Andreas Kießling almost 4 years ago
Updated by Andreas Kießling almost 4 years ago
- Related to Feature #91783: Add "allow list" for php.ini setting disable_functions added
Updated by Oliver Hader 10 months ago
- File 93221_fake.png 93221_fake.png added
The corresponding code at https://github.com/TYPO3/typo3/blob/v13.0.0/typo3/sysext/install/Classes/SystemEnvironment/Check.php#L364-L383 just checks for the existence of the disable_functions
PHP setting. It lacks filtering for PHP functions that are actually required by TYPO3.
The following screenshot shows random words that were configured for testing purposes - actually none of these "functions" is a real PHP function, and none of them is used/required by TYPO3.
Updated by Oliver Hader 10 months ago
- Category changed from Reports to Install Tool
Updated by Oliver Hader 10 months ago
- Related to Task #82257: Install tool: Use ext:core messaging added
Updated by Oliver Hader 10 months ago
- Related to deleted (Task #82257: Install tool: Use ext:core messaging)
Updated by Oliver Hader 10 months ago
- Related to Feature #46219: Central system environment check added