derick Tue Aug 30 05:17:09 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src NEWS
/php-src/ext/date php_date.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.2027.2.31&r2=1.2027.2.32&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.31 php-src/NEWS:1.2027.2.32
--- php-src/NEWS:1.2027.2.31 Tue Aug 30 03:34:57 2005
+++ php-src/NEWS Tue Aug 30 05:17:08 2005
@@ -14,6 +14,8 @@
- Fixed "make test" to work for phpized extensions. (Hartmut, Jani)
- Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems.
(Andrey)
+- 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 #34284 (CLI phpinfo showing html on _SERVER["argv"]). (Jani)
http://cvs.php.net/diff.php/php-src/ext/date/php_date.c?r1=1.43.2.2&r2=1.43.2.3&ty=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.43.2.2
php-src/ext/date/php_date.c:1.43.2.3
--- php-src/ext/date/php_date.c:1.43.2.2 Thu Aug 25 05:47:25 2005
+++ php-src/ext/date/php_date.c Tue Aug 30 05:17:09 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_date.c,v 1.43.2.2 2005/08/25 09:47:25 derick Exp $ */
+/* $Id: php_date.c,v 1.43.2.3 2005/08/30 09:17:09 derick Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -392,7 +392,7 @@
case 'z': snprintf(buffer, 32, "%d", (int)
timelib_day_of_year(t->y, t->m, t->d)); break;
/* week */
- case 'W': snprintf(buffer, 32, "%d", (int) isoweek);
break; /* iso weeknr */
+ case 'W': snprintf(buffer, 32, "%02d", (int) isoweek);
break; /* iso weeknr */
case 'o': snprintf(buffer, 32, "%d", (int) isoyear);
break; /* iso year */
/* month */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php