com php-src: fix compat for ICU < 50: ext/intl/dateformat/datef ormat_create.cpp

From: Date: Fri, 08 Apr 2016 10:48:26 +0000
Subject: com php-src: fix compat for ICU < 50: ext/intl/dateformat/datef ormat_create.cpp
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91664@lists.php.net to get a copy of this message
Commit: 45d9efaac3ff4f861f86093d801aefd1b4fde9e5 Author: Anatol Belski <ab@php.net> Fri, 8 Apr 2016 12:48:26 +0200 Parents: 1541a55a4f9207c346a805c2b8d090f16d07f841 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=45d9efaac3ff4f861f86093d801aefd1b4fde9e5 Log: fix compat for ICU < 50 Changed paths: M ext/intl/dateformat/dateformat_create.cpp Diff: diff --git a/ext/intl/dateformat/dateformat_create.cpp b/ext/intl/dateformat/dateformat_create.cpp index 8705d4b..0e73fda 100644 --- a/ext/intl/dateformat/dateformat_create.cpp +++ b/ext/intl/dateformat/dateformat_create.cpp @@ -36,6 +36,10 @@ extern "C" { #include "dateformat_helpers.h" #include "zend_exceptions.h" +#if U_ICU_VERSION_MINOR_NUM < 50 +#define UDAT_PATTERN 0 +#endif + #define INTL_UDATE_FMT_OK(i) \ (UDAT_FULL == (i) || UDAT_LONG == (i) || \ UDAT_MEDIUM == (i) || UDAT_SHORT == (i) || \

« previous php.cvs (#91664) next »