diff options
author | Gustavo Lopes <glopes@nebm.ist.utl.pt> | 2012-08-26 23:30:43 +0200 |
---|---|---|
committer | Gustavo Lopes <glopes@nebm.ist.utl.pt> | 2012-08-26 23:39:04 +0200 |
commit | 72c807ad67f07ec391017f90771c2e9beb5dbed7 (patch) | |
tree | 4538c48cf1fa26b77bcad7f0fd36c3f7cfbc5cba /ext/intl/php_intl.c | |
parent | 949f6cd47312cdaa1603025af6bdd8e0ec6c425f (diff) | |
download | php-git-72c807ad67f07ec391017f90771c2e9beb5dbed7.tar.gz |
Allow Spoofchecker to be registered on ICU 49.1
Diffstat (limited to 'ext/intl/php_intl.c')
-rw-r--r-- | ext/intl/php_intl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c index efe0ddd242..90e3573c1b 100644 --- a/ext/intl/php_intl.c +++ b/ext/intl/php_intl.c @@ -70,7 +70,7 @@ #include "idn/idn.h" -#if U_ICU_VERSION_MAJOR_NUM > 3 && U_ICU_VERSION_MINOR_NUM >=2 +#if U_ICU_VERSION_MAJOR_NUM * 1000 + U_ICU_VERSION_MINOR_NUM >= 4002 # include "spoofchecker/spoofchecker_class.h" # include "spoofchecker/spoofchecker.h" # include "spoofchecker/spoofchecker_create.h" @@ -646,7 +646,7 @@ PHP_MINIT_FUNCTION( intl ) /* Expose IDN constants to PHP scripts. */ idn_register_constants(INIT_FUNC_ARGS_PASSTHRU); -#if U_ICU_VERSION_MAJOR_NUM > 3 && U_ICU_VERSION_MINOR_NUM >=2 +#if U_ICU_VERSION_MAJOR_NUM * 1000 + U_ICU_VERSION_MINOR_NUM >= 4002 /* Register 'Spoofchecker' PHP class */ spoofchecker_register_Spoofchecker_class( TSRMLS_C ); |