derick          Tue Aug 30 05:15:58 2005 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src    NEWS 
    /php-src/ext/standard       datetime.c 
  Log:
  - Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9).
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.469&r2=1.1760.2.470&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.469 php-src/NEWS:1.1760.2.470
--- php-src/NEWS:1.1760.2.469   Tue Aug 30 02:48:41 2005
+++ php-src/NEWS        Tue Aug 30 05:15:56 2005
@@ -21,6 +21,8 @@
 - Fixed segfaults when CURL callback functions throw exception. (Tony)
 - Fixed various reentrancy bugs in user-sort functions, solves bugs #33286 and
   #33295. (Mike Bretz)
+- Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9).
+  (Derick)
 - Fixed bug #34299 (ReflectionClass::isInstantiable() returns true for abstract
   classes). (Marcus)
 - Fixed bug #34078 (Reflection API problems in methods with boolean or 
http://cvs.php.net/diff.php/php-src/ext/standard/datetime.c?r1=1.121.2.5&r2=1.121.2.6&ty=u
Index: php-src/ext/standard/datetime.c
diff -u php-src/ext/standard/datetime.c:1.121.2.5 
php-src/ext/standard/datetime.c:1.121.2.6
--- php-src/ext/standard/datetime.c:1.121.2.5   Thu Apr 14 09:31:44 2005
+++ php-src/ext/standard/datetime.c     Tue Aug 30 05:15:58 2005
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: datetime.c,v 1.121.2.5 2005/04/14 13:31:44 iliaa Exp $ */
+/* $Id: datetime.c,v 1.121.2.6 2005/08/30 09:15:58 derick Exp $ */
 
 #include "php.h"
 #include "zend_operators.h"
@@ -657,7 +657,7 @@
                                        wk = (yd + 6 - wd + fd) / 7 - (fd > 3);
                                }
 
-                               sprintf(tmp_buff, "%d", wk);  /* SAFE */
+                               sprintf(tmp_buff, "%02d", wk);  /* SAFE */
                                strcat(Z_STRVAL_P(return_value), tmp_buff);
                                break;
 

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

Reply via email to