]> granicus.if.org Git - php/commitdiff
Yet two wrong version checks
authorAnatol Belski <ab@php.net>
Fri, 20 Oct 2017 14:54:47 +0000 (16:54 +0200)
committerAnatol Belski <ab@php.net>
Fri, 20 Oct 2017 14:54:47 +0000 (16:54 +0200)
ext/intl/tests/timezone_IDforWindowsID_basic2.phpt
ext/intl/tests/timezone_windowsID_basic2.phpt

index 4c3023a856b9addec5ce500fa1072689388cb827..1291dd98e510d34f6979d26ac3f18c47540f05c9 100644 (file)
@@ -4,7 +4,8 @@ IntlTimeZone::getIDForWindowsID basic test
 <?php
 if (!extension_loaded('intl'))
        die('skip intl extension not enabled'); ?>
-<?php if (version_compare(INTL_ICU_VERSION, '58.1') >= 0) die('skip for ICU <= 57.1'); ?>
+<?php if (version_compare(INTL_ICU_VERSION, '52') < 0) die('skip for ICU >= 52'); ?>
+<?php if (version_compare(INTL_ICU_VERSION, '58.1') < 0) die('skip for ICU >= 58.1'); ?>
 --FILE--
 <?php
 
index f2540f59cb8e4978d50e0df978258dd51a612ece..971c439094ccf79a3859c25af4593f7529d1aef2 100644 (file)
@@ -5,7 +5,7 @@ IntlTimeZone::getWindowsID basic test
 if (!extension_loaded('intl'))
        die('skip intl extension not enabled'); ?>
 <?php if (version_compare(INTL_ICU_VERSION, '52') < 0) die('skip for ICU >= 52'); ?>
-<?php if (version_compare(INTL_ICU_VERSION, '57.1') < 0) die('skip for ICU >= 58.1'); ?>
+<?php if (version_compare(INTL_ICU_VERSION, '58.1') < 0) die('skip for ICU >= 58.1'); ?>
 --FILE--
 <?php