cvs: php-src(PHP_5_3) /ext/date php_date.c

From: Date: Sun, 21 Jun 2009 22:19:12 +0000
Subject: cvs: php-src(PHP_5_3) /ext/date php_date.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58872@lists.php.net to get a copy of this message
scottmac Sun Jun 21 22:19:12 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/date php_date.c Log: MFH Fix bug #48276 - year is a long long so we need %lld so big endian systems print the correct value. http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.51.2.80&r2=1.43.2.45.2.51.2.81&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.51.2.80 php-src/ext/date/php_date.c:1.43.2.45.2.51.2.81 --- php-src/ext/date/php_date.c:1.43.2.45.2.51.2.80 Sun Jun 21 20:40:53 2009 +++ php-src/ext/date/php_date.c Sun Jun 21 22:19:11 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_date.c,v 1.43.2.45.2.51.2.80 2009/06/21 20:40:53 bjori Exp $ */ +/* $Id: php_date.c,v 1.43.2.45.2.51.2.81 2009/06/21 22:19:11 scottmac Exp $ */ #include "php.h" #include "php_streams.h" @@ -1051,7 +1051,7 @@ /* year */ case 'L': length = slprintf(buffer, 32, "%d", timelib_is_leap((int) t->y)); break; case 'y': length = slprintf(buffer, 32, "%02d", (int) t->y % 100); break; - case 'Y': length = slprintf(buffer, 32, "%s%04ld", t->y < 0 ? "-" : "", llabs((timelib_sll) t->y)); break; + case 'Y': length = slprintf(buffer, 32, "%s%04lld", t->y < 0 ? "-" : "", llabs((timelib_sll) t->y)); break; /* time */ case 'a': length = slprintf(buffer, 32, "%s", t->h >= 12 ? "pm" : "am"); break;

« previous php.cvs (#58872) next »