|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-11 18:03 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
Description: ------------ I believe it's not a bug, but it's a really good way to lock down the server for a couple of seconds. Anyway, mktime does not check if 'year' is a valid number. It accepts any integer value and starts counting the seconds. IMO mktime should have some limit after which the date is considered invalid and it returns FALSE without even starting to count. Reproduce code: --------------- <?php $start = microtime(1); $a = mktime(1, 1, 1, 1, 1, 11111111111); var_dump($a); echo number_format(microtime(1) - $start, 2)."\n"; ?> Expected result: ---------------- bool(false) 0.00 Actual result: -------------- bool(false) 44.57