|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-17 17:01 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 10:00:01 2025 UTC |
Using the following code with the month of October (any year), generates an endless loop; all other months are fine. <? $dtDate = ("10/01/00"); $nMonth = ("10"); do { // Build a calendar table $dtDate = (date("m/d/y", (strtotime($dtDate) + 86400))); } while (date("m", strtotime($dtDate)) == $nMonth); ?> I am using PHP 4.0.2 and Apache 1.3.12 under MS Windows 98 SE. I have tested this script using Linux, Apache and PHP3 and it executes OK for all months.