derick Fri May 2 21:32:13 2008 UTC Modified files: /php-src/ext/date php_date.c Log: - Fixed an issue in date() where a : was printed for the O modifier after a P modifier was used. http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.182&r2=1.183&diff_format=u Index: php-src/ext/date/php_date.c diff -u php-src/ext/date/php_date.c:1.182 php-src/ext/date/php_date.c:1.183 --- php-src/ext/date/php_date.c:1.182 Fri May 2 12:48:19 2008 +++ php-src/ext/date/php_date.c Fri May 2 21:32:13 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_date.c,v 1.182 2008/05/02 12:48:19 derick Exp $ */ +/* $Id: php_date.c,v 1.183 2008/05/02 21:32:13 derick Exp $ */ #include "php.h" #include "php_streams.h" @@ -903,7 +903,7 @@ timelib_time_offset *offset = NULL; timelib_sll isoweek, isoyear; php_locale_data *loc_dat; - int rfc_colon = 0; + int rfc_colon; if (!format_len) { if (UG(unicode)) { @@ -940,6 +940,7 @@ for (i = 0; i < format_len; i++) { no_free = 0; + rfc_colon = 0; switch (format[i]) { /* day */ case 'd': length = date_spprintf(&buffer, 32 TSRMLS_CC, "%02d", (int) t->d); break;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php