diff options
author | Scott MacVicar <scottmac@php.net> | 2009-06-21 22:19:11 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2009-06-21 22:19:11 +0000 |
commit | 25715c766069ec214000ff5829c1208bf6e59bab (patch) | |
tree | a56c7fb4a239548153d12a99988d503c663d4427 | |
parent | b293b35eaaa49e4f08e69f08b82a951d23618cc6 (diff) | |
download | php-git-25715c766069ec214000ff5829c1208bf6e59bab.tar.gz |
MFH Fix bug #48276 - year is a long long so we need %lld so big endian systems print the correct value.
-rw-r--r-- | ext/date/php_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 364349ec31..b836eada77 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1051,7 +1051,7 @@ static char *date_format(char *format, int format_len, timelib_time *t, int loca /* 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; |