ID:               27754
 Updated by:       [EMAIL PROTECTED]
 Reported By:      martin at tradex dot sk
-Status:           Open
+Status:           Closed
 Bug Type:         Date/time related
 Operating System: FreeBSD 4.9-RELEASE i386
 PHP Version:      4.3.5
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




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

[2004-03-29 10:28:28] martin at tradex dot sk

Description:
------------
mktime() reports wrong time in PHP version 4.3.5 under special
circumstances(4.3.4 works well). It reports a wrong negative unixtime
when requesting mktime() for March 28, 2004 = the day of CET/CEST
timezone change (2:00 AM -> 3:00 AM). The wrong time is reported in
mktime interval from (0, 0, 0, 03, 28, 2004); to (1, 59, 59, 03, 28,
2004);



Tested on: FreeBSD 4.9, PHP 4.3.5

Timezone: CET / CEST



Reproduce code:
---------------
echo mktime(0, 0, 0, 03, 28, 2004) . "\n" . mktime(1, 59, 59, 03, 28,
2004);



Expected result:
----------------
1080428400

1080435599



this result is the correct result from PHP 4.3.4

Actual result:
--------------
-7262

-3601



this is the wrong result from PHP 4.3.5


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


-- 
Edit this bug report at http://bugs.php.net/?id=27754&edit=1

Reply via email to