Commit 147e5a66 authored by Oliver Klee's avatar Oliver Klee Committed by Stefan Bürk
Browse files

[TASK] Avoid failing test value for PHP 8.1.7 strtotime bug

PHP 8.1.7 introduced a bug that it considers the month number 100
to be valid, which breaks one of our tests.

As it is not relevant for the test whether the invalid month is
exactly 100 or 99, we now are using a number that does not trigger
the PHP bug.

https://github.com/php/php-src/issues/8749

Resolves: #97756
Releases: main, 11.5
Change-Id: I2ca2b90a2c1e46f16cfeddda29d80e6a83779b1c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74871


Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
parent d654834f
......@@ -542,7 +542,7 @@ class NormalizeCommandTest extends UnitTestCase
'string seven' => ['seven', 1291083486],
'string 13' => ['13', 1291083486],
'integer 13' => [13, 1291083486],
'integer 100' => [100, 1291083486],
'integer 99' => [99, 1291083486],
'integer 2010' => [2010, 1291083486],
'string minus 7' => ['-7', 1291083486],
'negative integer 7' => [-7, 1291083486],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment