[PHP-DEV] PHP 4.0 Bug #6663 Updated: mktime returns -1 whereas 4.0.1pl2 returned the correct value From: Bug Database (php-dev <email protected>)
Date: 09/15/00

ID: 6663
User Update by: apeeters <email protected>
Old-Status: Feedback
Status: Open
Bug Type: Date/time related
Description: mktime returns -1 whereas 4.0.1pl2 returned the correct value

This bug also occured in 4.0 Release Candidate 2 bugid 4454, and has been solved.

Previous Comments:
---------------------------------------------------------------------------

[2000-09-12 01:14:07] apeeters <email protected>
And why does it work correctly then with all previous versions ?

---------------------------------------------------------------------------

[2000-09-11 22:41:15] stas <email protected>
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 <email protected>
Sample

mktime($starthour,$startmin,$startsec,"0","0","0");

---------------------------------------------------------------------------

[2000-09-11 22:33:56] apeeters <email protected>
Php 4.0.2 returns -1 on this statement wheras php 4.0.1pl2 returned the correct unix timestamp.

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=6663

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>