aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7/fix-tests-icu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/php7/fix-tests-icu.patch')
-rw-r--r--community/php7/fix-tests-icu.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/php7/fix-tests-icu.patch b/community/php7/fix-tests-icu.patch
new file mode 100644
index 0000000000..c2159b8923
--- /dev/null
+++ b/community/php7/fix-tests-icu.patch
@@ -0,0 +1,28 @@
+diff --git b/ext/intl/tests/locale_filter_matches3.phpt a/ext/intl/tests/locale_filter_matches3.phpt
+index 2816ba5e12..8c39d189eb 100644
+--- b/ext/intl/tests/locale_filter_matches3.phpt
++++ a/ext/intl/tests/locale_filter_matches3.phpt
+@@ -1,8 +1,8 @@
+ --TEST--
+-locale_filter_matches.phpt() ICU >= 51.2
++locale_filter_matches.phpt() ICU >= 51.2 && ICU < 67.1
+ --SKIPIF--
+ <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+-<?php if (version_compare(INTL_ICU_VERSION, '51.2') < 0) die('skip for ICU >= 51.2'); ?>
++<?php if (version_compare(INTL_ICU_VERSION, '67.1') >= 0) die('skip for ICU < 67.1'); ?>
+ --FILE--
+ <?php
+
+diff --git b/ext/intl/tests/locale_lookup_variant2.phpt a/ext/intl/tests/locale_lookup_variant2.phpt
+index 75a5350abf..af104e1ba8 100644
+--- b/ext/intl/tests/locale_lookup_variant2.phpt
++++ a/ext/intl/tests/locale_lookup_variant2.phpt
+@@ -2,7 +2,7 @@
+ locale_lookup.phpt()
+ --SKIPIF--
+ <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+-<?php if (version_compare(INTL_ICU_VERSION, '51.2') < 0) die('skip for ICU >= 51.2'); ?>
++<?php if (version_compare(INTL_ICU_VERSION, '67.1') >= 0) die('skip for ICU < 67.1'); ?>
+ --FILE--
+ <?php
+