strtotime bad logic or strtotime bug?

From: Date: Sat, 15 Nov 2003 04:53:41 +0000
Subject: strtotime bad logic or strtotime bug?
Groups: php.general 
Request: Send a blank email to php-general+get-169729@lists.php.net to get a copy of this message
Greetings, One of my servers required a PHP upgrade. Afterwards one of the PHP projects stopped functioning. When it would run one section would scroll endlessly. I can't figure out if it's a 'bug' or if it's bad logic in the coding. I isolated the problem to be in the 'strtotime' function. Here is a test I ran - when it runs, after getting to 2003-10-26, it scrolls incessently: ----BEGIN CODE------ <?php echo "<html><head><title>Testing strtotime </title></head>"; print " <BR>" ; $stop= "2003-12-27" ; $start= "2003-01-01" ; While ($start <> $stop) { echo "<BR> Date: " . $start ; $start = date('Y-m-d', strtotime($start) + 86400); } ?> ----END CODE------ Is there something wrong with the logic/code or is it a bug? I'm using strtotime mainly for decoding a MySQL date field (iterating thru all date records and generating HTML forms). PHP: 4.3.4 / Apache 2.0.48 Thanks for your time, YAPHPN [Yet.Another.PHPNewbie] Gnik

« previous php.general (#169729) next »