[PHP-DEV] Bug #10550 Updated: mktime() returns -1 for certain valid dates From: hholzgra <email protected>
Date: 04/29/01

ID: 10550
Updated by: hholzgra
Reported By: chris.php <email protected>
Status: Assigned
Bug Type: Date/time related
PHP Version: 4.0 Latest CVS (29/04/2001)
Assigned To: derick
Comments:

daylight saving related??? (u

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

[2001-04-29 11:27:18] avsm <email protected>
It doesn't occur under OpenBSD; it looks like a FreeBSD issue (happens on 4.x-STABLE as well). This came up recently on the Horde/Chora list:

http://marc.theaimsgroup.com/?l=chora&m=98622313207343&w=2

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

[2001-04-29 11:20:53] derick <email protected>
I could not reproduce this under Linux. Will try later with OpenBSD. As PHP uses the underlying C functions for this, this might actaully be a problem with FreeBSD.

Derick

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

[2001-04-29 07:05:20] chris.php <email protected>
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
$

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

[2001-04-29 06:46:27] chris.php <email protected>
$ 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
$

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

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10550&edit=2

-- 
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>