derick Mon Jun 28 10:35:42 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/standard datetime.c /php-src NEWS Log: - MFH: Fixed bug with leap year checking. http://cvs.php.net/diff.php/php-src/ext/standard/datetime.c?r1=1.96.2.15&r2=1.96.2.16&ty=u Index: php-src/ext/standard/datetime.c diff -u php-src/ext/standard/datetime.c:1.96.2.15 php-src/ext/standard/datetime.c:1.96.2.16 --- php-src/ext/standard/datetime.c:1.96.2.15 Wed Mar 31 12:59:28 2004 +++ php-src/ext/standard/datetime.c Mon Jun 28 10:35:41 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: datetime.c,v 1.96.2.15 2004/03/31 17:59:28 hholzgra Exp $ */ +/* $Id: datetime.c,v 1.96.2.16 2004/06/28 14:35:41 derick Exp $ */ #include "php.h" #include "zend_operators.h" @@ -64,7 +64,7 @@ {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} }; -#define isleap(year) (((year % 4) == 0 && (year % 100) != 0) || (year % 400)==0) +#define isleap(year) ((((year) % 4) == 0 && ((year) % 100) != 0) || ((year) % 400)==0) #define YEAR_BASE 1900 /* {{{ proto int time(void) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.691&r2=1.1247.2.692&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.691 php-src/NEWS:1.1247.2.692 --- php-src/NEWS:1.1247.2.691 Mon Jun 28 07:30:03 2004 +++ php-src/NEWS Mon Jun 28 10:35:41 2004 @@ -30,6 +30,7 @@ (Moriyoshi) - Fixed bug #28175 (Allow bundled GD to compile against freetype 2.1.2). (Elf, Ilia) +- Fixed leap year checking with idate(). (Christian Schneider, Derick) - Fixed strip_tags() to correctly handle '\0' characters. (Stefan) 03 Jun 2004, Version 4.3.7
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php