News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Is Your PHP Application Affected by the Y2K38 Bug?
August 24, 2010 @ 10:12:23

On the SitePoint PHP blog today they pose a question to all PHP developers out there - is your application affected by the Y2K38 bug?

I don't want to be too alarmist, but try running the [given] PHP code on your system. [...] With luck, you'll see "Wednesday 1 February 2040 00:00" displayed in your browser. If you're seeing a date in the late 60's or early 70's, your PHP application may be at risk from the Y2K38 bug!

The bug, caused by a 32-bit operating system, can be helped by running the application on a 64-bit platform (it's due to the limitation of integer size), but there is another option - the DateTime class that handles dates and times differently than the just using the local time settings.

1 comment voice your opinion now!
y2k38 bug datetime integer 32bit 64bit


blog comments powered by Disqus

Similar Posts

Mike\'s Blog: PECL HTTP module - A nasty bug and a new example

John Mertic's Blog: PHP 5.2.5 Windows Installer now working

Community News: Windows Software Tools for PHP Wants Beta Testers

Carson McDonald's Blog: Building HipHop PHP for Fedora 12 on 64 bit and 32 bit Systems

Gonzalo Ayuso's Blog: Strange behavior in PHP with method visibility


Community Events

Don't see your event here?
Let us know!


library interview api release introduction community symfony voicesoftheelephpant extension version podcast security laravel unittest language opinion laravel5 threedevsandamaybe framework series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework