derick          Fri May  2 21:36:01 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /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.43.2.45.2.58&r2=1.43.2.45.2.59&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.43.2.45.2.58 
php-src/ext/date/php_date.c:1.43.2.45.2.59
--- php-src/ext/date/php_date.c:1.43.2.45.2.58  Wed Apr 16 17:21:46 2008
+++ php-src/ext/date/php_date.c Fri May  2 21:36:00 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_date.c,v 1.43.2.45.2.58 2008/04/16 17:21:46 derick Exp $ */
+/* $Id: php_date.c,v 1.43.2.45.2.59 2008/05/02 21:36:00 derick Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -731,7 +731,7 @@
        char                 buffer[33];
        timelib_time_offset *offset = NULL;
        timelib_sll          isoweek, isoyear;
-       int                  rfc_colon = 0;
+       int                  rfc_colon;
 
        if (!format_len) {
                return estrdup("");
@@ -761,6 +761,7 @@
        timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek, &isoyear);
 
        for (i = 0; i < format_len; i++) {
+               rfc_colon = 0;
                switch (format[i]) {
                        /* day */
                        case 'd': length = slprintf(buffer, 32, "%02d", (int) 
t->d); break;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to