#28416 [Asn->WFx]: mktime doesn't handle three digit years correct

From: Date: Mon, 15 Nov 2004 15:52:41 +0000
Subject: #28416 [Asn->WFx]: mktime doesn't handle three digit years correct
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69084@lists.php.net to get a copy of this message
ID: 28416 Updated by: derick@php.net Reported By: helly@php.net -Status: Assigned +Status: Wont fix Bug Type: Date/time related Operating System: * PHP Version: 4.3.6 Assigned To: derick New Comment: This can not be fixed, because the unsigned int range does not extend to the year "123". Previous Comments: ------------------------------------------------------------------------ [2004-05-16 20:23:07] helly@php.net Description: ------------ mktime() doesn't handle three digit year values correct. Reproduce code: --------------- <?php var_dump(date("Y", mktime(1, 2, 3, 4, 5, 123)));' ?> Expected result: ---------------- string(4) "2123" Actual result: -------------- string(4) "2023" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28416&edit=1

« previous php.bugs (#69084) next »