PHP 4.0 Bug #10550 Updated: mktime() returns -1 for certain valid dates
| From: | chris dot php at bolt dot cx | Date: | Sun, 29 Apr 2001 11:05:20 +0000 |
| Subject: | PHP 4.0 Bug #10550 Updated: mktime() returns -1 for certain valid dates | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52884@lists.php.net to get a copy of this message | ||
ID: 10550
User Update by: chris.php@bolt.cx
Status: Open
Bug Type: Date/time related
Description: mktime() returns -1 for certain valid dates
Correction:
$ cat test.php
<?=
gmmktime(1, 18, 27, 4, 1, 2001, 0) . "\n" .
gmmktime(2, 18, 27, 4, 1, 2001, 0) . "\n" .
gmmktime(3, 18, 27, 4, 1, 2001, 0) . "\n";
?>
$ php -q test.php
986087907
-21601
986098707
$
Previous Comments:
---------------------------------------------------------------------------
[2001-04-29 06:46:27] chris.php@bolt.cx
$ cat test.php
<?=
mktime(1, 18, 27, 4, 1, 2001) . "n" .
mktime(2, 18, 27, 4, 1, 2001) . "n" .
mktime(3, 18, 27, 4, 1, 2001) . "n";
?>
$ php -q test.php
986113107
-1
986116707
$
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10550