#110079array_find() (PHP 8.4+) used in TcaSelectItems breaks PHP 8.3 compatibility in v13
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
Related issues 1
History 510
-
Garvin Hicking commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2026-06-18T19:23:41+00:00" > 06/18/26, 19:23 </span> -
Garvin Hicking changed status
Needs FeedbackAccepted Is Regression 1 <span data-processor="relativetime" data-value="2026-06-18T19:23:52+00:00" > 06/18/26, 19:23 </span> -
Garvin Hicking changed Related to #108346 <span data-processor="relativetime" data-value="2026-06-18T19:23:59+00:00" > 06/18/26, 19:23 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 94532 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2026-06-19T06:45:51+00:00" > 06/19/26, 06:45 </span> -
Gerrit Code Review pushed patch set 1 for 13.4 to change 94533 <span data-processor="relativetime" data-value="2026-06-19T07:05:01+00:00" > 06/19/26, 07:05 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 94534 <span data-processor="relativetime" data-value="2026-06-19T07:05:13+00:00" > 06/19/26, 07:05 </span>
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 94534 <span data-processor="relativetime" data-value="2026-06-19T07:09:01+00:00" > 06/19/26, 07:09 </span>
-
Gerrit Code Review pushed patch set 2 for 13.4 to change 94533 <span data-processor="relativetime" data-value="2026-06-19T07:10:23+00:00" > 06/19/26, 07:10 </span>
-
Garvin Hicking commented and changed status
Under ReviewResolved done0 %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.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-08-11T08:50:56+00:00" > 08/11/26, 08:50 </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 :)