Closed
Description
Description
The following code:
<?php
$vars = array(
"DateTime" => new DateTime(),);
$vars["DateTime"]->setDate(PHP_INT_MAX, 2, PHP_INT_MIN);
?>
Resulted in this output:
/home/dan/php-8.3.9/ext/date/lib/tm2unixtime.c:464:13: runtime error: signed integer overflow: 22995298254817523 * 146097 cannot be represented in type 'long long int'
But I expected this output instead:
PHP Version
8.3.9
Operating System
No response