[php-src] Issue #16035: overflow in tm2unixtime.c:47:6

From: Date: Wed, 25 Sep 2024 00:30:19 +0000
Subject: [php-src] Issue #16035: overflow in tm2unixtime.c:47:6
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247889@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/16035 Author: chongwick ### Description The following code: ```php <?php echo gmmktime(PHP_INT_MIN, PHP_FLOAT_MIN, PHP_FLOAT_MIN, PHP_INT_MAX, PHP_INT_MAX, PHP_INT_MAX). "\n"; ?> ``` Resulted in this output: ``` /home/dan/php-8.3.9/ext/date/lib/tm2unixtime.c:47:6: runtime error: signed integer overflow: 768614336404564650 + 9223372036854775807 cannot be represented in type 'long long int' ``` ### PHP Version 8.3.9 ### Operating System _No response_

« previous php.bugs (#247889) next »