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