[tz] The Y2038 problem is 20 years away

Derick Rethans tz at derickrethans.nl
Fri Jan 19 17:14:01 UTC 2018


On Fri, 19 Jan 2018, Matthew Donadio wrote:

> On Fri, Jan 19, 2018 at 9:15 AM, Derick Rethans <tz at derickrethans.nl> wrote:
> 
> > That's not true. On a 64-bit platform, you should run a 64-bit build
> > Windows. The problem on Windows was that its "long" is an int32_t, but
> > this all got resolved with PHP 7.0 (out for 2+ years), where it now uses
> > an int64_t-like type.
> 
> Should you use it?  Yes, absolutely.  But there are still LTS deployments
> that have this problem, and some common starter-kit local environments that
> are still bundled with 32-bit PHP.  This pops up three or four times a year
> for me in the Drupal issue queues.

Even on 32-bit PHP builds, the Date/Time classes wrap a 64-bit int.

cheers,
Derick

-- 
https://derickrethans.nl | https://xdebug.org | https://dram.io
Like Xdebug? Consider a donation: https://xdebug.org/donate.php,
or become my Patron: https://www.patreon.com/derickr
twitter: @derickr and @xdebug



More information about the tz mailing list