ID: 40645 User updated by: simone at ivg dot it Reported By: simone at ivg dot it -Status: Feedback +Status: Closed Bug Type: Date/time related Operating System: Linux 2.6 PHP Version: 4.4.5 New Comment:
This isn't a PHP bug, but a GNU libc issue. Here I've found a C code to test if my libc has the problem: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=196177 Thanks. Previous Comments: ------------------------------------------------------------------------ [2007-02-26 18:01:02] [EMAIL PROTECTED] This works fine for me with PHP 4.4.6RC2-dev: <?php echo strtotime("1951-12-22"), "\n"; ?> -568947600 ------------------------------------------------------------------------ [2007-02-26 17:55:41] simone at ivg dot it Description: ------------ The strtotime() function returns -1 if the date is prior to 1970-01-01. Instead, date function works properly with negative timestamps. Reproduce code: --------------- strtotime("1951-12-22") returns -1 date("d/m/Y",-578944001) returns 28/08/1951 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40645&edit=1