Issue Bug Resolved

#103842TYPO3 not running under PHP 8 with disabled function ini_set

jku jku 05/15/24, 11:06 updated 09/02/26, 21:15

Description

Context

We are running TYPO3 for years in a strictly secured environment, so PHP function ini_set among others is disabled via global PHP configuration.

disable_function=ini_set

We know that there are several lines of code with ini_set, but we were able to run TYPO3 until now.

  • At Bootstrap.php ini_set is prefixed with -oparator => so this worked under PHP 7 * At SessionService.php there is no -operator, but we needed no install tool at our production server

Problem now

PHP 8 changed the behaviour of the @-operator, so TYPO3 completely fails at the first usage of ini_set at Bootstrap.php. So we cannot run TYPO3 with disabled ini_set.

Proposal

It would be helpful to wrap all usages of ini_set in the TYPO3 core with conditions or try/catch blocks.

  • At SessionService.php it could be wrapped with a check, if the required PHP settings are already done.
  • At Bootstrap.php it could be wrapped with a try/catch block.

Reviews 2

History 415

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-02T20:40:09+00:00" > 09/02/26, 20:40 </span>

    Applied in changeset commit:7f0245d296e2e04ce681e8516ac68cbd1a376683.

  2. Gerrit Code Review pushed patch set 2 for 14.3 to change 95573 status Resolved Under Review <span data-processor="relativetime" data-value="2026-09-02T20:41:41+00:00" > 09/02/26, 20:41 </span>

  3. Georg Ringer commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-09-02T21:15:09+00:00" > 09/02/26, 21:15 </span>

    Applied in changeset commit:ed47582d17d8fb2674f47bc6b782b9dde83c8f4e.