-
Couldn't load subscription status.
- Fork 8k
Closed as not planned
Description
Description
The following code:
<?php
$max_int = PHP_INT_MAX;
$datetime = mktime(0, 0, 0, 1, $max_int, 1970);Resulted in this output:
/home/dan/php-src/ext/date/lib/tm2unixtime.c:209:4: runtime error: signed integer overflow: 9223372036854775807 + 719467 cannot be represented in type 'long long int'
But I expected this output instead:
PHP Version
8.4.2
Operating System
ubuntu 22.04