summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-07-03 10:03:59 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-07-03 10:03:59 +0200
commitf71268ac67bc540b29b3ceff80f9673c4a6fcecb (patch)
tree136e03dc1362098217d563f610ca08a900c270ce /TSRM
parent6188a69b8ac24674d002cbaa523c83ac2c0d4017 (diff)
parentb4c81be9c5e9bfb6ec23de038da4d3a6a206187c (diff)
downloadphp-git-f71268ac67bc540b29b3ceff80f9673c4a6fcecb.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #78241: touch() does not handle dates after 2038 in PHP 64-bit
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index af875fa2a0..e510c61426 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -769,7 +769,7 @@ static zend_always_inline void UnixTimeToFileTime(time_t t, LPFILETIME pft) /* {
// Note that LONGLONG is a 64-bit value
LONGLONG ll;
- ll = Int32x32To64(t, 10000000) + 116444736000000000;
+ ll = t * 10000000 + 116444736000000000;
pft->dwLowDateTime = (DWORD)ll;
pft->dwHighDateTime = ll >> 32;
}