Skip to content

Commit 72c807a

Browse files
committed
Allow Spoofchecker to be registered on ICU 49.1
1 parent 949f6cd commit 72c807a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/intl/php_intl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
#include "idn/idn.h"
7272

73-
#if U_ICU_VERSION_MAJOR_NUM > 3 && U_ICU_VERSION_MINOR_NUM >=2
73+
#if U_ICU_VERSION_MAJOR_NUM * 1000 + U_ICU_VERSION_MINOR_NUM >= 4002
7474
# include "spoofchecker/spoofchecker_class.h"
7575
# include "spoofchecker/spoofchecker.h"
7676
# include "spoofchecker/spoofchecker_create.h"
@@ -646,7 +646,7 @@ PHP_MINIT_FUNCTION( intl )
646646
/* Expose IDN constants to PHP scripts. */
647647
idn_register_constants(INIT_FUNC_ARGS_PASSTHRU);
648648

649-
#if U_ICU_VERSION_MAJOR_NUM > 3 && U_ICU_VERSION_MINOR_NUM >=2
649+
#if U_ICU_VERSION_MAJOR_NUM * 1000 + U_ICU_VERSION_MINOR_NUM >= 4002
650650
/* Register 'Spoofchecker' PHP class */
651651
spoofchecker_register_Spoofchecker_class( TSRMLS_C );
652652

0 commit comments

Comments
 (0)