102-debian_patches_use_embedded_timezonedb.patch 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. Add support for use of the system timezone database, rather
  2. than embedding a copy. Discussed upstream but was not desired.
  3. History:
  4. r11: adopted to php 5.6.9
  5. r10: make timezone case insensitive
  6. r9: fix another compile error without --with-system-tzdata configured (Michael Heimpold)
  7. r8: fix compile error without --with-system-tzdata configured
  8. r7: improve check for valid timezone id to exclude directories
  9. r6: fix fd leak in r5, fix country code/BC flag use in.
  10. timezone_identifiers_list() using system db,
  11. fix use of PECL timezonedb to override system db,
  12. r5: reverts addition of "System/Localtime" fake tzname.
  13. updated for 5.3.0, parses zone.tab to pick up mapping between
  14. timezone name, country code and long/lat coords
  15. r4: added "System/Localtime" tzname which uses /etc/localtime
  16. r3: fix a crash if /usr/share/zoneinfo doesn't exist (Raphael Geissert)
  17. r2: add filesystem trawl to set up name alias index
  18. r1: initial revision
  19. --- a/ext/date/lib/parse_tz.c
  20. +++ b/ext/date/lib/parse_tz.c
  21. @@ -22,8 +22,22 @@
  22. * THE SOFTWARE.
  23. */
  24. +#ifndef PATH_MAX
  25. +#define PATH_MAX 4096
  26. +#endif
  27. +
  28. #include "timelib.h"
  29. +#ifdef HAVE_SYSTEM_TZDATA
  30. +#include <sys/mman.h>
  31. +#include <sys/stat.h>
  32. +#include <limits.h>
  33. +#include <fcntl.h>
  34. +#include <unistd.h>
  35. +
  36. +#include "php_scandir.h"
  37. +#endif
  38. +
  39. #include <stdio.h>
  40. #ifdef HAVE_LOCALE_H
  41. @@ -36,8 +50,12 @@
  42. #include <strings.h>
  43. #endif
  44. +#ifndef HAVE_SYSTEM_TZDATA
  45. #define TIMELIB_SUPPORTS_V2DATA
  46. #include "timezonedb.h"
  47. +#endif
  48. +
  49. +#include <ctype.h>
  50. #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__))
  51. # if defined(__LITTLE_ENDIAN__)
  52. @@ -59,6 +77,11 @@ static int read_preamble(const unsigned
  53. {
  54. uint32_t version;
  55. + if (memcmp(tzf, "TZif", 4) == 0) {
  56. + *tzf += 20;
  57. + return -1;
  58. + }
  59. +
  60. /* read ID */
  61. version = (*tzf)[3] - '0';
  62. *tzf += 4;
  63. @@ -302,7 +325,406 @@ void timelib_dump_tzinfo(timelib_tzinfo
  64. }
  65. }
  66. -static int seek_to_tz_position(const unsigned char **tzf, char *timezone, const timelib_tzdb *tzdb)
  67. +#ifdef HAVE_SYSTEM_TZDATA
  68. +
  69. +#ifdef HAVE_SYSTEM_TZDATA_PREFIX
  70. +#define ZONEINFO_PREFIX HAVE_SYSTEM_TZDATA_PREFIX
  71. +#else
  72. +#define ZONEINFO_PREFIX "/usr/share/zoneinfo"
  73. +#endif
  74. +
  75. +/* System timezone database pointer. */
  76. +static const timelib_tzdb *timezonedb_system;
  77. +
  78. +/* Hash table entry for the cache of the zone.tab mapping table. */
  79. +struct location_info {
  80. + char code[2];
  81. + double latitude, longitude;
  82. + char name[64];
  83. + char *comment;
  84. + struct location_info *next;
  85. +};
  86. +
  87. +/* Cache of zone.tab. */
  88. +static struct location_info **system_location_table;
  89. +
  90. +/* Size of the zone.tab hash table; a random-ish prime big enough to
  91. + * prevent too many collisions. */
  92. +#define LOCINFO_HASH_SIZE (1021)
  93. +
  94. +/* Compute a case insensitive hash of str */
  95. +static uint32_t tz_hash(const char *str)
  96. +{
  97. + const unsigned char *p = (const unsigned char *)str;
  98. + uint32_t hash = 5381;
  99. + int c;
  100. +
  101. + while ((c = tolower(*p++)) != '\0') {
  102. + hash = (hash << 5) ^ hash ^ c;
  103. + }
  104. +
  105. + return hash % LOCINFO_HASH_SIZE;
  106. +}
  107. +
  108. +/* Parse an ISO-6709 date as used in zone.tab. Returns end of the
  109. + * parsed string on success, or NULL on parse error. On success,
  110. + * writes the parsed number to *result. */
  111. +static char *parse_iso6709(char *p, double *result)
  112. +{
  113. + double v, sign;
  114. + char *pend;
  115. + size_t len;
  116. +
  117. + if (*p == '+')
  118. + sign = 1.0;
  119. + else if (*p == '-')
  120. + sign = -1.0;
  121. + else
  122. + return NULL;
  123. +
  124. + p++;
  125. + for (pend = p; *pend >= '0' && *pend <= '9'; pend++)
  126. + ;;
  127. +
  128. + /* Annoying encoding used by zone.tab has no decimal point, so use
  129. + * the length to determine the format:
  130. + *
  131. + * 4 = DDMM
  132. + * 5 = DDDMM
  133. + * 6 = DDMMSS
  134. + * 7 = DDDMMSS
  135. + */
  136. + len = pend - p;
  137. + if (len < 4 || len > 7) {
  138. + return NULL;
  139. + }
  140. +
  141. + /* p => [D]DD */
  142. + v = (p[0] - '0') * 10.0 + (p[1] - '0');
  143. + p += 2;
  144. + if (len == 5 || len == 7)
  145. + v = v * 10.0 + (*p++ - '0');
  146. + /* p => MM[SS] */
  147. + v += (10.0 * (p[0] - '0')
  148. + + p[1] - '0') / 60.0;
  149. + p += 2;
  150. + /* p => [SS] */
  151. + if (len > 5) {
  152. + v += (10.0 * (p[0] - '0')
  153. + + p[1] - '0') / 3600.0;
  154. + p += 2;
  155. + }
  156. +
  157. + /* Round to five decimal place, not because it's a good idea,
  158. + * but, because the builtin data uses rounded data, so, match
  159. + * that. */
  160. + *result = round(v * sign * 100000.0) / 100000.0;
  161. +
  162. + return p;
  163. +}
  164. +
  165. +/* This function parses the zone.tab file to build up the mapping of
  166. + * timezone to country code and geographic location, and returns a
  167. + * hash table. The hash table is indexed by the function:
  168. + *
  169. + * tz_hash(timezone-name)
  170. + */
  171. +static struct location_info **create_location_table(void)
  172. +{
  173. + struct location_info **li, *i;
  174. + char zone_tab[PATH_MAX];
  175. + char line[512];
  176. + FILE *fp;
  177. +
  178. + strncpy(zone_tab, ZONEINFO_PREFIX "/zone.tab", sizeof zone_tab);
  179. +
  180. + fp = fopen(zone_tab, "r");
  181. + if (!fp) {
  182. + return NULL;
  183. + }
  184. +
  185. + li = calloc(LOCINFO_HASH_SIZE, sizeof *li);
  186. +
  187. + while (fgets(line, sizeof line, fp)) {
  188. + char *p = line, *code, *name, *comment;
  189. + uint32_t hash;
  190. + double latitude, longitude;
  191. +
  192. + while (isspace(*p))
  193. + p++;
  194. +
  195. + if (*p == '#' || *p == '\0' || *p == '\n')
  196. + continue;
  197. +
  198. + if (!isalpha(p[0]) || !isalpha(p[1]) || p[2] != '\t')
  199. + continue;
  200. +
  201. + /* code => AA */
  202. + code = p;
  203. + p[2] = 0;
  204. + p += 3;
  205. +
  206. + /* coords => [+-][D]DDMM[SS][+-][D]DDMM[SS] */
  207. + p = parse_iso6709(p, &latitude);
  208. + if (!p) {
  209. + continue;
  210. + }
  211. + p = parse_iso6709(p, &longitude);
  212. + if (!p) {
  213. + continue;
  214. + }
  215. +
  216. + if (!p || *p != '\t') {
  217. + continue;
  218. + }
  219. +
  220. + /* name = string */
  221. + name = ++p;
  222. + while (*p != '\t' && *p && *p != '\n')
  223. + p++;
  224. +
  225. + *p++ = '\0';
  226. +
  227. + /* comment = string */
  228. + comment = p;
  229. + while (*p != '\t' && *p && *p != '\n')
  230. + p++;
  231. +
  232. + if (*p == '\n' || *p == '\t')
  233. + *p = '\0';
  234. +
  235. + hash = tz_hash(name);
  236. + i = malloc(sizeof *i);
  237. + memcpy(i->code, code, 2);
  238. + strncpy(i->name, name, sizeof i->name);
  239. + i->comment = strdup(comment);
  240. + i->longitude = longitude;
  241. + i->latitude = latitude;
  242. + i->next = li[hash];
  243. + li[hash] = i;
  244. + /* printf("%s [%u, %f, %f]\n", name, hash, latitude, longitude); */
  245. + }
  246. +
  247. + fclose(fp);
  248. +
  249. + return li;
  250. +}
  251. +
  252. +/* Return location info from hash table, using given timezone name.
  253. + * Returns NULL if the name could not be found. */
  254. +const struct location_info *find_zone_info(struct location_info **li,
  255. + const char *name)
  256. +{
  257. + uint32_t hash = tz_hash(name);
  258. + const struct location_info *l;
  259. +
  260. + if (!li) {
  261. + return NULL;
  262. + }
  263. +
  264. + for (l = li[hash]; l; l = l->next) {
  265. + if (strcasecmp(l->name, name) == 0)
  266. + return l;
  267. + }
  268. +
  269. + return NULL;
  270. +}
  271. +
  272. +/* Filter out some non-tzdata files and the posix/right databases, if
  273. + * present. */
  274. +static int index_filter(const struct dirent *ent)
  275. +{
  276. + return strcmp(ent->d_name, ".") != 0
  277. + && strcmp(ent->d_name, "..") != 0
  278. + && strcmp(ent->d_name, "posix") != 0
  279. + && strcmp(ent->d_name, "posixrules") != 0
  280. + && strcmp(ent->d_name, "right") != 0
  281. + && strstr(ent->d_name, ".tab") == NULL;
  282. +}
  283. +
  284. +static int sysdbcmp(const void *first, const void *second)
  285. +{
  286. + const timelib_tzdb_index_entry *alpha = first, *beta = second;
  287. +
  288. + return strcmp(alpha->id, beta->id);
  289. +}
  290. +
  291. +
  292. +/* Create the zone identifier index by trawling the filesystem. */
  293. +static void create_zone_index(timelib_tzdb *db)
  294. +{
  295. + size_t dirstack_size, dirstack_top;
  296. + size_t index_size, index_next;
  297. + timelib_tzdb_index_entry *db_index;
  298. + char **dirstack;
  299. +
  300. + /* LIFO stack to hold directory entries to scan; each slot is a
  301. + * directory name relative to the zoneinfo prefix. */
  302. + dirstack_size = 32;
  303. + dirstack = malloc(dirstack_size * sizeof *dirstack);
  304. + dirstack_top = 1;
  305. + dirstack[0] = strdup("");
  306. +
  307. + /* Index array. */
  308. + index_size = 64;
  309. + db_index = malloc(index_size * sizeof *db_index);
  310. + index_next = 0;
  311. +
  312. + do {
  313. + struct dirent **ents;
  314. + char name[PATH_MAX], *top;
  315. + int count;
  316. +
  317. + /* Pop the top stack entry, and iterate through its contents. */
  318. + top = dirstack[--dirstack_top];
  319. + snprintf(name, sizeof name, ZONEINFO_PREFIX "/%s", top);
  320. +
  321. + count = php_scandir(name, &ents, index_filter, php_alphasort);
  322. +
  323. + while (count > 0) {
  324. + struct stat st;
  325. + const char *leaf = ents[count - 1]->d_name;
  326. +
  327. + snprintf(name, sizeof name, ZONEINFO_PREFIX "/%s/%s",
  328. + top, leaf);
  329. +
  330. + if (strlen(name) && stat(name, &st) == 0) {
  331. + /* Name, relative to the zoneinfo prefix. */
  332. + const char *root = top;
  333. +
  334. + if (root[0] == '/') root++;
  335. +
  336. + snprintf(name, sizeof name, "%s%s%s", root,
  337. + *root ? "/": "", leaf);
  338. +
  339. + if (S_ISDIR(st.st_mode)) {
  340. + if (dirstack_top == dirstack_size) {
  341. + dirstack_size *= 2;
  342. + dirstack = realloc(dirstack,
  343. + dirstack_size * sizeof *dirstack);
  344. + }
  345. + dirstack[dirstack_top++] = strdup(name);
  346. + }
  347. + else {
  348. + if (index_next == index_size) {
  349. + index_size *= 2;
  350. + db_index = realloc(db_index,
  351. + index_size * sizeof *db_index);
  352. + }
  353. +
  354. + db_index[index_next++].id = strdup(name);
  355. + }
  356. + }
  357. +
  358. + free(ents[--count]);
  359. + }
  360. +
  361. + if (count != -1) free(ents);
  362. + free(top);
  363. + } while (dirstack_top);
  364. +
  365. + qsort(db_index, index_next, sizeof *db_index, sysdbcmp);
  366. +
  367. + db->index = db_index;
  368. + db->index_size = index_next;
  369. +
  370. + free(dirstack);
  371. +}
  372. +
  373. +#define FAKE_HEADER "1234\0??\1??"
  374. +#define FAKE_UTC_POS (7 - 4)
  375. +
  376. +/* Create a fake data segment for database 'sysdb'. */
  377. +static void fake_data_segment(timelib_tzdb *sysdb,
  378. + struct location_info **info)
  379. +{
  380. + size_t n;
  381. + char *data, *p;
  382. +
  383. + data = malloc(3 * sysdb->index_size + 7);
  384. +
  385. + p = mempcpy(data, FAKE_HEADER, sizeof(FAKE_HEADER) - 1);
  386. +
  387. + for (n = 0; n < sysdb->index_size; n++) {
  388. + const struct location_info *li;
  389. + timelib_tzdb_index_entry *ent;
  390. +
  391. + ent = (timelib_tzdb_index_entry *)&sysdb->index[n];
  392. +
  393. + /* Lookup the timezone name in the hash table. */
  394. + if (strcmp(ent->id, "UTC") == 0) {
  395. + ent->pos = FAKE_UTC_POS;
  396. + continue;
  397. + }
  398. +
  399. + li = find_zone_info(info, ent->id);
  400. + if (li) {
  401. + /* If found, append the BC byte and the
  402. + * country code; set the position for this
  403. + * section of timezone data. */
  404. + ent->pos = (p - data) - 4;
  405. + *p++ = '\1';
  406. + *p++ = li->code[0];
  407. + *p++ = li->code[1];
  408. + }
  409. + else {
  410. + /* If not found, the timezone data can
  411. + * point at the header. */
  412. + ent->pos = 0;
  413. + }
  414. + }
  415. +
  416. + sysdb->data = (unsigned char *)data;
  417. +}
  418. +
  419. +/* Returns true if the passed-in stat structure describes a
  420. + * probably-valid timezone file. */
  421. +static int is_valid_tzfile(const struct stat *st)
  422. +{
  423. + return S_ISREG(st->st_mode) && st->st_size > 20;
  424. +}
  425. +
  426. +/* Return the mmap()ed tzfile if found, else NULL. On success, the
  427. + * length of the mapped data is placed in *length. */
  428. +static char *map_tzfile(const char *timezone, size_t *length)
  429. +{
  430. + char fname[PATH_MAX];
  431. + struct stat st;
  432. + char *p;
  433. + int fd;
  434. +
  435. + if (timezone[0] == '\0' || strstr(timezone, "..") != NULL) {
  436. + return NULL;
  437. + }
  438. +
  439. + if (system_location_table) {
  440. + const struct location_info *li;
  441. + if ((li = find_zone_info(system_location_table, timezone)) != NULL) {
  442. + /* Use the stored name to avoid case issue */
  443. + timezone = li->name;
  444. + }
  445. + }
  446. +
  447. + snprintf(fname, sizeof fname, ZONEINFO_PREFIX "/%s", timezone);
  448. +
  449. + fd = open(fname, O_RDONLY);
  450. + if (fd == -1) {
  451. + return NULL;
  452. + } else if (fstat(fd, &st) != 0 || !is_valid_tzfile(&st)) {
  453. + close(fd);
  454. + return NULL;
  455. + }
  456. +
  457. + *length = st.st_size;
  458. + p = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
  459. + close(fd);
  460. +
  461. + return p != MAP_FAILED ? p : NULL;
  462. +}
  463. +
  464. +#endif
  465. +
  466. +static int inmem_seek_to_tz_position(const unsigned char **tzf, char *timezone, const timelib_tzdb *tzdb)
  467. {
  468. int left = 0, right = tzdb->index_size - 1;
  469. #ifdef HAVE_SETLOCALE
  470. @@ -341,21 +763,90 @@ static int seek_to_tz_position(const uns
  471. return 0;
  472. }
  473. +static int seek_to_tz_position(const unsigned char **tzf, char *timezone,
  474. + char **map, size_t *maplen,
  475. + const timelib_tzdb *tzdb)
  476. +{
  477. +#ifdef HAVE_SYSTEM_TZDATA
  478. + if (tzdb == timezonedb_system) {
  479. + char *orig;
  480. +
  481. + orig = map_tzfile(timezone, maplen);
  482. + if (orig == NULL) {
  483. + return 0;
  484. + }
  485. +
  486. + (*tzf) = (unsigned char *)orig;
  487. + *map = orig;
  488. +
  489. + return 1;
  490. + }
  491. + else
  492. +#endif
  493. + {
  494. + return inmem_seek_to_tz_position(tzf, timezone, tzdb);
  495. + }
  496. +}
  497. +
  498. const timelib_tzdb *timelib_builtin_db(void)
  499. {
  500. +#ifdef HAVE_SYSTEM_TZDATA
  501. + if (timezonedb_system == NULL) {
  502. + timelib_tzdb *tmp = malloc(sizeof *tmp);
  503. +
  504. + tmp->version = "0.system";
  505. + tmp->data = NULL;
  506. + create_zone_index(tmp);
  507. + system_location_table = create_location_table();
  508. + fake_data_segment(tmp, system_location_table);
  509. + timezonedb_system = tmp;
  510. + }
  511. +
  512. +
  513. + return timezonedb_system;
  514. +#else
  515. return &timezonedb_builtin;
  516. +#endif
  517. }
  518. const timelib_tzdb_index_entry *timelib_timezone_builtin_identifiers_list(int *count)
  519. {
  520. +#ifdef HAVE_SYSTEM_TZDATA
  521. + *count = timezonedb_system->index_size;
  522. + return timezonedb_system->index;
  523. +#else
  524. *count = sizeof(timezonedb_idx_builtin) / sizeof(*timezonedb_idx_builtin);
  525. return timezonedb_idx_builtin;
  526. +#endif
  527. }
  528. int timelib_timezone_id_is_valid(char *timezone, const timelib_tzdb *tzdb)
  529. {
  530. const unsigned char *tzf;
  531. - return (seek_to_tz_position(&tzf, timezone, tzdb));
  532. +
  533. +#ifdef HAVE_SYSTEM_TZDATA
  534. + if (tzdb == timezonedb_system) {
  535. + char fname[PATH_MAX];
  536. + struct stat st;
  537. +
  538. + if (timezone[0] == '\0' || strstr(timezone, "..") != NULL) {
  539. + return 0;
  540. + }
  541. +
  542. + if (system_location_table) {
  543. + if (find_zone_info(system_location_table, timezone) != NULL) {
  544. + /* found in cache */
  545. + return 1;
  546. + }
  547. + }
  548. +
  549. + snprintf(fname, sizeof fname, ZONEINFO_PREFIX "/%s", timezone);
  550. +
  551. + return stat(fname, &st) == 0 && is_valid_tzfile(&st);
  552. + }
  553. +#endif
  554. +
  555. + return (inmem_seek_to_tz_position(&tzf, timezone, tzdb));
  556. }
  557. static void skip_64bit_preamble(const unsigned char **tzf, timelib_tzinfo *tz)
  558. @@ -380,10 +871,12 @@ static void read_64bit_header(const unsi
  559. timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb)
  560. {
  561. const unsigned char *tzf;
  562. + char *memmap = NULL;
  563. + size_t maplen;
  564. timelib_tzinfo *tmp;
  565. int version;
  566. - if (seek_to_tz_position(&tzf, timezone, tzdb)) {
  567. + if (seek_to_tz_position(&tzf, timezone, &memmap, &maplen, tzdb)) {
  568. tmp = timelib_tzinfo_ctor(timezone);
  569. version = read_preamble(&tzf, tmp);
  570. @@ -397,7 +890,34 @@ timelib_tzinfo *timelib_parse_tzfile(cha
  571. skip_64bit_types(&tzf, tmp);
  572. skip_posix_string(&tzf, tmp);
  573. }
  574. - read_location(&tzf, tmp);
  575. +
  576. +#ifdef HAVE_SYSTEM_TZDATA
  577. + if (memmap) {
  578. + const struct location_info *li;
  579. +
  580. + /* TZif-style - grok the location info from the system database,
  581. + * if possible. */
  582. +
  583. + if ((li = find_zone_info(system_location_table, timezone)) != NULL) {
  584. + tmp->location.comments = strdup(li->comment);
  585. + strncpy(tmp->location.country_code, li->code, 2);
  586. + tmp->location.longitude = li->longitude;
  587. + tmp->location.latitude = li->latitude;
  588. + tmp->bc = 1;
  589. + } else {
  590. + strcpy(tmp->location.country_code, "??");
  591. + tmp->bc = 0;
  592. + tmp->location.comments = strdup("");
  593. + }
  594. +
  595. + /* Now done with the mmap segment - discard it. */
  596. + munmap(memmap, maplen);
  597. + } else
  598. +#endif
  599. + {
  600. + /* PHP-style - use the embedded info. */
  601. + read_location(&tzf, tmp);
  602. + }
  603. } else {
  604. tmp = NULL;
  605. }
  606. --- a/ext/date/lib/timelib.m4
  607. +++ b/ext/date/lib/timelib.m4
  608. @@ -78,3 +78,17 @@ stdlib.h
  609. dnl Check for strtoll, atoll
  610. AC_CHECK_FUNCS(strtoll atoll strftime)
  611. +
  612. +PHP_ARG_WITH(system-tzdata, for use of system timezone data,
  613. +[ --with-system-tzdata[=DIR] to specify use of system timezone data],
  614. +no, no)
  615. +
  616. +if test "$PHP_SYSTEM_TZDATA" != "no"; then
  617. + AC_DEFINE(HAVE_SYSTEM_TZDATA, 1, [Define if system timezone data is used])
  618. +
  619. + if test "$PHP_SYSTEM_TZDATA" != "yes"; then
  620. + AC_DEFINE_UNQUOTED(HAVE_SYSTEM_TZDATA_PREFIX, "$PHP_SYSTEM_TZDATA",
  621. + [Define for location of system timezone data])
  622. + fi
  623. +fi
  624. +