|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-07-08 09:16 UTC] stephan dot schulze at kapthon dot com
Description:
------------
If you call setcookie with an invalid time value causes high load for the calling apache process
Reproduce code:
---------------
setcookie("SessionID", $S, time() . 15768000, "/");
Expected result:
----------------
Cookie is set and there should be no load for the apache process
Actual result:
--------------
Cookie is set and there is a load of 100% for the apache process
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 21:00:01 2025 UTC |
This loop in ext/date/lib/unixtime2tm.c seems to be the problem: while (tmp_days >= DAYS_PER_LYEAR) { .. } Derick, can that be optimized for such huge timestamps?