Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198194 Details for
Bug 278064
php-5.2.10: date('Y') generates 0000 on big endian architectures
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch date extension to use the same method as used in 5.2.9 for option Y
php-5.2.10_big_endian_date_fix_for_Y.diff (text/plain), 622 bytes, created by
J.O. Aho
on 2009-07-16 15:33:59 UTC
(
hide
)
Description:
Patch date extension to use the same method as used in 5.2.9 for option Y
Filename:
MIME Type:
Creator:
J.O. Aho
Created:
2009-07-16 15:33:59 UTC
Size:
622 bytes
patch
obsolete
>--- ext/date/php_date.c_org 2009-07-16 15:57:48.323737227 +0200 >+++ ext/date/php_date.c 2009-07-16 15:58:40.247737227 +0200 >@@ -798,7 +798,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(t->y)); break; >+ case 'Y': length = slprintf(buffer, 32, "%s%04d", t->y < 0 ? "-" : "", abs((int) t->y)); break; > > /* time */ > case 'a': length = slprintf(buffer, 32, "%s", t->h >= 12 ? "pm" : "am"); break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278064
:
198194
|
198329