PHP 4.0 Bug #6663 Updated: mktime returns -1 whereas 4.0.1pl2 returned the correct value

From: Date: Wed, 20 Sep 2000 22:07:27 +0000
Subject: PHP 4.0 Bug #6663 Updated: mktime returns -1 whereas 4.0.1pl2 returned the correct value
Groups: php.dev 
Request: Send a blank email to php-dev+get-33592@lists.php.net to get a copy of this message
ID: 6663 Updated by: stas Reported By: apeeters@pi.be Status: Closed Bug Type: Date/time related Assigned To: Comments: 4454 talks about entirely different things. And I don't really see why you need year, month and day equal to 0? What date is it going to represent? Previous Comments: --------------------------------------------------------------------------- [2000-09-15 18:57:00] apeeters@pi.be This bug also occured in 4.0 Release Candidate 2 bugid 4454, and has been solved. --------------------------------------------------------------------------- [2000-09-12 01:14:07] apeeters@pi.be And why does it work correctly then with all previous versions ? --------------------------------------------------------------------------- [2000-09-11 22:41:15] stas@php.net Month, day and year == 0 is an illegal date for mktime() (otherwise it would interpret it as 30.11.99 which is not exactly what you expect, I guess. If you do, just write 30.11.99). --------------------------------------------------------------------------- [2000-09-11 22:34:47] apeeters@pi.be Sample mktime($starthour,$startmin,$startsec,"0","0","0"); --------------------------------------------------------------------------- [2000-09-11 22:33:56] apeeters@pi.be Php 4.0.2 returns -1 on this statement wheras php 4.0.1pl2 returned the correct unix timestamp. --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=6663

« previous php.dev (#33592) next »