[php-src] Issue #8749: Regression: `strtotime` in PHP 8.1.7 considers month #100 to be valid

From: Date: Fri, 10 Jun 2022 17:52:37 +0000
Subject: [php-src] Issue #8749: Regression: `strtotime` in PHP 8.1.7 considers month #100 to be valid
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241711@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8749 Author: oliverklee ### Description The following code: ```php <?php declare(strict_types=1); error_reporting(E_ALL); $month99IsValid = is_int(strtotime('2010-99-01')); $month100IsValid = is_int(strtotime('2010-100-01')); var_dump($month99IsValid); var_dump($month100IsValid);``` Resulted in this output: ``` bool(false) bool(true) ``` But I expected this output instead: ``` bool(false) bool(false) ``` See this live in action here: https://3v4l.org/8EO74 ### PHP Version PHP 8.1.7 ### Operating System _No response_

« previous php.bugs (#241711) next »