From 56c8c01e7965d1fd7096b1b28d6578c5205edb45 Mon Sep 17 00:00:00 2001
From: Oliver Klee <typo3-coding@oliverklee.de>
Date: Fri, 10 Jun 2022 19:51:10 +0200
Subject: [PATCH] [TASK] Avoid failing test value for PHP 8.1.7 strtotime bug
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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/+/74840
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
---
 .../scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php b/typo3/sysext/scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php
index d07cd82e6305..c2a9ad53276a 100644
--- a/typo3/sysext/scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php
+++ b/typo3/sysext/scheduler/Tests/Unit/CronCommand/NormalizeCommandTest.php
@@ -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],
-- 
GitLab