com php-src: This doesn't work in PHP 5.5 - sigh, I wish the libs were kept in sync: ext/date/lib/parse_tz.c
| From: | Derick Rethans | Date: | Tue, 28 Apr 2015 23:25:29 +0000 |
| Subject: | com php-src: This doesn't work in PHP 5.5 - sigh, I wish the libs were kept in sync: ext/date/lib/parse_tz.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86554@lists.php.net to get a copy of this message | ||
Commit: df49ce3d5a0176824330253dff7961a444724767
Author: Derick Rethans <github@derickrethans.nl> Wed, 29 Apr 2015 00:25:29 +0100
Parents: 912e42fc2319246a05a546731fd22018459d4dd8
Branches: PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=df49ce3d5a0176824330253dff7961a444724767
Log:
This doesn't work in PHP 5.5 - sigh, I wish the libs were kept in sync
Changed paths:
M ext/date/lib/parse_tz.c
Diff:
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c
index 8a48fad..ecd4899 100644
--- a/ext/date/lib/parse_tz.c
+++ b/ext/date/lib/parse_tz.c
@@ -261,12 +261,12 @@ void timelib_dump_tzinfo(timelib_tzinfo *tz)
printf("Geo Location: %f,%f\n", tz->location.latitude,
tz->location.longitude);
printf("Comments:\n%s\n", tz->location.comments);
printf("BC: %s\n", tz->bc ? "" : "yes");
- printf("UTC/Local count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong)
tz->bit32.ttisgmtcnt);
- printf("Std/Wall count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong)
tz->bit32.ttisstdcnt);
- printf("Leap.sec. count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong)
tz->bit32.leapcnt);
- printf("Trans. count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong)
tz->bit32.timecnt);
- printf("Local types count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong)
tz->bit32.typecnt);
- printf("Zone Abbr. count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong)
tz->bit32.charcnt);
+ printf("UTC/Local count: %lu\n", (unsigned long) tz->bit32.ttisgmtcnt);
+ printf("Std/Wall count: %lu\n", (unsigned long) tz->bit32.ttisstdcnt);
+ printf("Leap.sec. count: %lu\n", (unsigned long) tz->bit32.leapcnt);
+ printf("Trans. count: %lu\n", (unsigned long) tz->bit32.timecnt);
+ printf("Local types count: %lu\n", (unsigned long) tz->bit32.typecnt);
+ printf("Zone Abbr. count: %lu\n", (unsigned long) tz->bit32.charcnt);
printf ("%8s (%12s) = %3d [%5ld %1d %3d '%s' (%d,%d)]\n",
"", "", 0,