1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
diff --git a/PHP/CompatInfo/Reference/intl.php b/PHP/CompatInfo/Reference/intl.php
index 64a088f..6266150 100644
--- a/PHP/CompatInfo/Reference/intl.php
+++ b/PHP/CompatInfo/Reference/intl.php
@@ -342,6 +342,10 @@ class PHP_CompatInfo_Reference_Intl
=> array('5.5.0', ''),
'intlcal_get_minimum' => array('5.5.0', ''),
'intlcal_get_now' => array('5.5.0', ''),
+ 'intlcal_get_repeated_wall_time_option'
+ => array('5.5.0', ''),
+ 'intlcal_get_skipped_wall_time_option'
+ => array('5.5.0', ''),
'intlcal_get_time' => array('5.5.0', ''),
'intlcal_get_time_zone' => array('5.5.0', ''),
'intlcal_get_type' => array('5.5.0', ''),
@@ -355,6 +359,10 @@ class PHP_CompatInfo_Reference_Intl
'intlcal_set' => array('5.5.0', ''),
'intlcal_set_first_day_of_week' => array('5.5.0', ''),
'intlcal_set_lenient' => array('5.5.0', ''),
+ 'intlcal_set_repeated_wall_time_option'
+ => array('5.5.0', ''),
+ 'intlcal_set_skipped_wall_time_option'
+ => array('5.5.0', ''),
'intlcal_set_time' => array('5.5.0', ''),
'intlcal_set_time_zone' => array('5.5.0', ''),
'intlcal_to_date_time' => array('5.5.0', ''),
@@ -377,6 +385,7 @@ class PHP_CompatInfo_Reference_Intl
'intltz_get_offset' => array('5.5.0', ''),
'intltz_get_raw_offset' => array('5.5.0', ''),
'intltz_get_region' => array('5.5.0', ''),
+ 'intltz_get_unknown' => array('5.5.0', ''),
'intltz_get_tz_data_version' => array('5.5.0', ''),
'intltz_has_same_rules' => array('5.5.0', ''),
'intltz_to_date_time_zone' => array('5.5.0', ''),
diff --git a/tests/Reference/IntlTest.php b/tests/Reference/IntlTest.php
index 8636f4f..22c1717 100644
--- a/tests/Reference/IntlTest.php
+++ b/tests/Reference/IntlTest.php
@@ -51,13 +51,6 @@ class PHP_CompatInfo_Reference_IntlTest
if (PATH_SEPARATOR == ';') {
// Win*
$this->optionalclasses = array('IntlException');
- $this->ignoredfunctions = array(
- 'intltz_get_unknown',
- 'intlcal_get_repeated_wall_time_option',
- 'intlcal_get_skipped_wall_time_option',
- 'intlcal_set_repeated_wall_time_option',
- 'intlcal_set_skipped_wall_time_option',
- );
}
if (version_compare(INTL_ICU_VERSION, '3.8.0', 'lt')) {
@@ -70,6 +63,30 @@ class PHP_CompatInfo_Reference_IntlTest
);
}
+ if (version_compare(INTL_ICU_VERSION, '4.8', 'lt')) {
+ // requires libicu >= 4.8
+ $this->optionalfunctions = array_merge(
+ $this->optionalfunctions,
+ array(
+ 'intltz_create_time_zone_id_enumeration',
+ 'intltz_get_region',
+ )
+ );
+ }
+ if (version_compare(INTL_ICU_VERSION, '49', 'lt')) {
+ // requires libicu >= 49 (version scheme change 4.9 become 49)
+ $this->optionalfunctions = array_merge(
+ $this->optionalfunctions,
+ array(
+ 'intltz_get_unknown',
+ 'intlcal_get_repeated_wall_time_option',
+ 'intlcal_get_skipped_wall_time_option',
+ 'intlcal_set_repeated_wall_time_option',
+ 'intlcal_set_skipped_wall_time_option',
+ )
+ );
+ }
+
/*
On Windows platform extension intl 1.1.0 :
- uses libicu 4.6.1 for PHP 5.4.1 or greater
|