[php-src] PR #12775: Fixed int32 underflow on DateTime::createFromTimestamp

From: Date: Fri, 24 Nov 2023 23:09:24 +0000
Subject: [php-src] PR #12775: Fixed int32 underflow on DateTime::createFromTimestamp
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-24312@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12775 Author: marc-mabe This fixes an integer underflow on passing PHP_INT_MIN - 0.X to DateTime[Immutable]::createFromTimestamp(). This is due to the fact that the fractional part is handled separately ... ```c if (UNEXPECTED(usec < 0)) { sec = sec - 1; usec = 1000000 + usec; } ``` PS: PHP_INT_MAX - 0.X does not have this issue

« previous php.git-pulls (#24312) next »