Edit report at https://bugs.php.net/bug.php?id=62785&edit=1
ID: 62785 Comment by: david at nnucomputerwhiz dot com Reported by: d dot sandip59 at gmail dot com Summary: mktime() and strtotime() does not return anything for date '2050-12-31'' Status: Open Type: Bug Package: Date/time related Operating System: Windows XP PHP Version: 5.4.5 Block user comment: N Private report: N New Comment: I can confirm that this bug does NOT exist in Debian Linux 64-bit but does exist in Windows XP 32-bit using the 5.4.7 binaries from php.net. Not sure if it's going to be possible to fix since it's probably OS dependent. Previous Comments: ------------------------------------------------------------------------ [2012-08-09 12:16:06] paj...@php.net fix category ------------------------------------------------------------------------ [2012-08-09 12:13:27] anon at anon dot anon https://en.wikipedia.org/wiki/Year_2038_problem ------------------------------------------------------------------------ [2012-08-09 10:00:42] d dot sandip59 at gmail dot com Description: ------------ I have use this date:- $exp_date = "2050-12-31 00:00:00"; $timestamp = strtotime($exp_date); echo $timestamp; But i got no timestamp value for it. Also, I am using this following code:- list($year, $month, $date) = explode('-', $exp_date); $timestamp = mktime(0,0,0, $month,$date,$year); echo $timestamp; But i also got no timestamp value for it. Test script: --------------- I have use this date:- $exp_date = "2050-12-31 00:00:00"; $timestamp = strtotime($exp_date); echo $timestamp; list($year, $month, $date) = explode('-', $exp_date); $timestamp = mktime(0,0,0, $month,$date,$year); echo $timestamp; Expected result: ---------------- It show return a timestamp value even after the year 2037. Till the year 2037 it is returning valid timestamp value, but after that it does not return any timestamp value. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62785&edit=1