]> granicus.if.org Git - php/commit
Fix #78241: touch() does not handle dates after 2038 in PHP 64-bit
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 3 Jul 2019 07:59:17 +0000 (09:59 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 3 Jul 2019 07:59:17 +0000 (09:59 +0200)
commit44c8b7414ce96038017edc2fd827f8250669a62a
treeec317c10a02bd2a1b66505550170bfc6ac6db2f7
parent32c68428a9888e3776441ed39c85b8b49f08fb88
Fix #78241: touch() does not handle dates after 2038 in PHP 64-bit

`time_t` defaults to `_time64` (which is 64bit signed) even on x86, but
`Int32x32To64()` truncates it to signed 32bit.  We replace the macro
with the "manual" calculation.
NEWS
TSRM/tsrm_win32.c
ext/standard/tests/file/bug78241.phpt [new file with mode: 0644]