#93221Environment status: error message for disable_functions ist not helping
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
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Environment status: error message for disable_functions ist not helping Resolves: #93221 Releases: main
Related issues 2
Files 1
History 10
-
Andreas Kießling changed description <span data-processor="relativetime" data-value="2021-01-05T14:56:03+00:00" > 01/05/21, 14:56 </span>
-
Andreas Kießling commented <span data-processor="relativetime" data-value="2021-01-05T15:18:53+00:00" > 01/05/21, 15:18 </span>
-
Andreas Kießling changed Related to #91783 <span data-processor="relativetime" data-value="2021-01-05T15:19:08+00:00" > 01/05/21, 15:19 </span>
-
Oliver Hader changed status
NewAccepted <span data-processor="relativetime" data-value="2024-01-31T09:54:18+00:00" > 01/31/24, 09:54 </span> -
Oliver Hader commented and changed attached 93221_fake.png <span data-processor="relativetime" data-value="2024-01-31T09:58:33+00:00" > 01/31/24, 09:58 </span>
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_functionsPHP 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.
-
Oliver Hader changed category <span data-processor="relativetime" data-value="2024-01-31T09:58:42+00:00" > 01/31/24, 09:58 </span>
-
Oliver Hader changed Related to #82257 <span data-processor="relativetime" data-value="2024-01-31T10:04:26+00:00" > 01/31/24, 10:04 </span>
-
Oliver Hader changed
Related to #82257<span data-processor="relativetime" data-value="2024-01-31T10:05:17+00:00" > 01/31/24, 10:05 </span> -
Oliver Hader changed Related to #46219 <span data-processor="relativetime" data-value="2024-01-31T10:05:22+00:00" > 01/31/24, 10:05 </span>
-
Benni Mack changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2026-08-06T16:03:29+00:00" > 08/06/26, 16:03 </span>
I just checked the code for that error, and it just checks if there are any functions disabled, even if they are not needed at all.
There is already an allowlist config #91783, but imho we should do better here or ship with a default config for #91783 to filter out the usual suspects