Issue Bug Closed

#110079array_find() (PHP 8.4+) used in TcaSelectItems breaks PHP 8.3 compatibility in v13

Jimit Shah 06/18/26, 18:44 updated 08/11/26, 08:50

Description

TYPO3 Version: >= 13.4.28

PHP Version: 8.3.x
File: typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php

Line: ~130
Description:

array_find() is a PHP 8.4+ function. TYPO3 v13 officially supports PHP 8.2 and 8.3. This function was introduced in this file in v13.4.28 and causes a fatal error on any PHP 8.3 installation where a site record uses an ENV placeholder value in a select-type field.

Steps to reproduce:

Run TYPO3 v13.4.28 on PHP 8.3

Have a site configuration with an ENV placeholder (e.g. env(MY_VAR)) in a select field
Open that site record in the backend

Expected: Record opens normally

Actual: Fatal PHP error — array_find() undefined function
Fix: Replace array_find() with a foreach loop (compatible with PHP 8.1+)

Reviews 3

History 510

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2026-06-18T19:23:41+00:00" > 06/18/26, 19:23 </span>

    Hm, this method is covered with the symfony/ppolyfill-php84 – however in TYPO3 13.4 only the PHP 8.3 polyfill is loaded. Unsure why our CI does not catch this. Will ask for help :)

  2. Garvin Hicking changed status Needs Feedback Accepted Is Regression 1 <span data-processor="relativetime" data-value="2026-06-18T19:23:52+00:00" > 06/18/26, 19:23 </span>

  3. Gerrit Code Review pushed patch set 1 for main to change 94532 status Accepted Under Review <span data-processor="relativetime" data-value="2026-06-19T06:45:51+00:00" > 06/19/26, 06:45 </span>

  4. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-06-19T09:00:12+00:00" > 06/19/26, 09:00 </span>

    Applied in changeset commit:bd066c64964915986a86493a97453347e96c1815.