PHP 4.0 Bug #4096 Updated: mktime() & date() bug on Win32 Environment
| From: | Bug Database | Date: | Sun, 30 Jul 2000 11:39:03 +0000 |
| Subject: | PHP 4.0 Bug #4096 Updated: mktime() & date() bug on Win32 Environment | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-26931@lists.php.net to get a copy of this message | ||
ID: 4096
Updated by: zak
Reported By: chankor@netscape.net
Status: Analyzed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
I am grasping to understand the source code for this bug - mostly because it seems like it should be
easy to tackle. :)
If I understand correctly, either the native win functions cannot handle dates beyond the start of
epoch - or - the versions of gmtime_r, localtime_r and mktime used in the win C compilers are not
very robust
php_mktime on win returns -1 for any date before the epoch.
php_date on win returns an error for any time value under 0
I am guessing that the only practical way to fix this is by writing the date/time calculation code
directly into php - instead of relying on OS based libraries.
Full Bug description available at: http://bugs.php.net/?id=4096