PEAR::Date - compare()

From: Date: Mon, 15 Mar 2004 20:37:05 +0000
Subject: PEAR::Date - compare()
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11306@lists.php.net to get a copy of this message
Hello, I work under easyPHP 1.7 (PHP 4.3.4 / Apache 1.3.24) and I have the following problem with PEAR::Date. When I use the compare() function (and then, with before() and after(), too) apache hangs after some refreshes of the web page (or when I call this function in a for loop). <?php require_once 'Date.php'; $date1 = new Date(); $date2 = new Date("2004-03-01 00:00:00"); echo "Date #1 : " . $date1->getDate() . "<br>"; echo "Date #2 : " . $date2->getDate() . "<br>"; echo "Date#1 before Date2 : #" . $date1->before($date2) . "#<br>"; ?> So the browser returns me an empty page ("Document contains no data" w/ Mozilla) and Apache stops (sometimes). Does anybody here know why? Best regards, Christophe Jaubert (FR)

« previous php.pear.general (#11306) next »