derick Fri Feb 22 17:49:30 2008 UTC Modified files: (Branch: PHP_5_2) /php-src NEWS /php-src/ext/date/lib dow.c Log: - MFH: Fixed bug #44216 (strftime segfaults on large negative value). http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1093&r2=1.2027.2.547.2.1094&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.1093 php-src/NEWS:1.2027.2.547.2.1094 --- php-src/NEWS:1.2027.2.547.2.1093 Fri Feb 22 09:48:18 2008 +++ php-src/NEWS Fri Feb 22 17:49:30 2008 @@ -11,6 +11,7 @@ - Upgraded PCRE to version 7.6 (Nuno) +- Fixed bug #44216 (strftime segfaults on large negative value). (Derick) - Fixed bug #44209 (strtotime() doesn't support 64 bit timestamps on 64 bit platforms). (Derick) - Fixed bug #44197 (socket array keys lost on socket_select). (Felipe) http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/dow.c?r1=1.8.2.3.2.4&r2=1.8.2.3.2.5&diff_format=u Index: php-src/ext/date/lib/dow.c diff -u php-src/ext/date/lib/dow.c:1.8.2.3.2.4 php-src/ext/date/lib/dow.c:1.8.2.3.2.5 --- php-src/ext/date/lib/dow.c:1.8.2.3.2.4 Mon Dec 31 07:20:05 2007 +++ php-src/ext/date/lib/dow.c Fri Feb 22 17:49:30 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dow.c,v 1.8.2.3.2.4 2007/12/31 07:20:05 sebastian Exp $ */ +/* $Id: dow.c,v 1.8.2.3.2.5 2008/02/22 17:49:30 derick Exp $ */ #include "timelib.h" @@ -35,10 +35,12 @@ { timelib_sll c1, y1, m1, dow; - /* Only valid for Gregorian calendar */ + /* Only valid for Gregorian calendar, commented out as we don't handle + * julian calendar. We just return the 'wrong' day of week to be + * consistent. if (y < 1753) { return -1; - } + } */ c1 = century_value(y / 100); y1 = (y % 100); m1 = timelib_is_leap(y) ? m_table_leap[m] : m_table_common[m];
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php