scottmac Sun Jun 21 22:18:53 2009 UTC
Modified files:
/php-src/ext/date php_date.c
Log:
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.237&r2=1.238&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.237 php-src/ext/date/php_date.c:1.238
--- php-src/ext/date/php_date.c:1.237 Sun Jun 21 20:41:51 2009
+++ php-src/ext/date/php_date.c Sun Jun 21 22:18:53 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_date.c,v 1.237 2009/06/21 20:41:51 bjori Exp $ */
+/* $Id: php_date.c,v 1.238 2009/06/21 22:18:53 scottmac Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -1143,7 +1143,7 @@
/* year */
case 'L': length = date_spprintf(&buffer, 32 TSRMLS_CC,
"%d", timelib_is_leap((int) t->y)); break;
case 'y': length = date_spprintf(&buffer, 32 TSRMLS_CC,
"%02d", (int) t->y % 100); break;
- case 'Y': length = date_spprintf(&buffer, 32 TSRMLS_CC,
"%s%04ld", t->y < 0 ? "-" : "", llabs(t->y)); break;
+ case 'Y': length = date_spprintf(&buffer, 32 TSRMLS_CC,
"%s%04lld", t->y < 0 ? "-" : "", llabs(t->y)); break;
/* time */
case 'a': length = date_spprintf(&buffer, 32 TSRMLS_CC,
"%R", localized ? IS_UNICODE : IS_STRING, am_pm_lower_full(t->h >= 12 ? 1 : 0,
localized)); break;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php