Project

General

Profile

Actions

Bug #96321

closed

The DatabaseQueryProcessor is not working when using "pidInList = root" with PHP 8.0

Added by Benni Mack almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Start date:
2021-12-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In ContentObjectRenderer::getQuery (line 6004) the $storagePid is compared to a number. $storagePid itself can be a number, 'this' or 'root'. When $storagePid is 'root' it will fail, because when using PHP 8.0 a string is not converted automatically to a number anymore.
There is a detailed description about it here:
https://www.php.net/manual/en/language.operators.comparison.php

»Warning: Prior to PHP 8.0.0, if a string is compared to a number or a numeric string then the string was converted to a number before performing the comparison.«

Actions

Also available in: Atom PDF