ID: 17123 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Won't fix +Status: Won\'t fix Bug Type: Date/time related Operating System: WinNT5.0 PHP Version: 4.2.0 New Comment:
Just use Julian dates as supported by the calendar extension. Previous Comments: ------------------------------------------------------------------------ [2002-11-24 13:11:42] [EMAIL PROTECTED] The problem is that all of the PHP date functions are based on that miserable timestamp. At least if there were a consisent set of alternative functions that handle dates and bypass this problem it would be nice. The bottom line of having no official result for this is unbearable, there's no way to calculate the age diffrence of people who are older than 33.. This is quite basic and the lack of it makes this otherwise very strong language - very poor and unprofessional. too bad. ------------------------------------------------------------------------ [2002-11-04 04:53:54] [EMAIL PROTECTED] The problem still occurs with 4.2.3: mktime(0,0,0,09,23,1967) returns -1 instead of a valid timestamp. ------------------------------------------------------------------------ [2002-08-04 04:47:40] [EMAIL PROTECTED] Since the time stamp is started from 1970, I don't think it supposed to work in anyways. Or is there anything wrong is returned when too small/large date is supplied? It should fail, but it should not crash PHP for example. Please reopen if PHP behaves badly. BTW, there should be feature requests for more generic date functions so no need for feature request also. ------------------------------------------------------------------------ [2002-08-01 10:56:29] [EMAIL PROTECTED] I have 4.0.6 on several machines (3 I think), and I have the same problem on all of them (I have Windows 2000 on all of them). As much as I want to convert my server to a linux box, it still leaves me two computers with Windows 2000 and this bug. I had one idea, but since I don't have 4.2.0 I can't work on it yet. With the new W32 API capabilities of 4.2.0, would it not be possible to use some Windows API functions to parse date/time information rather than the included PHP functions? Obviously, Windows can handle the dates. I use JavaScript a lot and it has a range of approximately 275,000 years before and after 1970. I tested my valid range yesterday using the PHP functions, I could go from 1970 to about 2037. Wow. What about all the people that were born before 1970? Older than 32 years... Anyway, when I get home I will download 4.2.0 and then start hacking away at using the PROPER Windows API functions for date/time since PHP seems to be wanting to use the ones that don't work. Hope something gets figured out, even if I have to program my own DLL to make it work... :) -Percy ------------------------------------------------------------------------ [2002-07-04 16:08:25] [EMAIL PROTECTED] Verified during the Bughunt. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17123 -- Edit this bug report at http://bugs.php.net/?id=17123&edit=1