Skip to content

Commit b627e33

Browse files
committed
Bugfix 63790 - Don't try to use Spoofchecker when unavailable
ICUSpoofChecker was introduced with 4.2 and may be unavailable in some cases. Skip this test when its not present.
1 parent 2649a9e commit b627e33

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ PHP NEWS
104104
. Fixed bug #74433 (wrong reflection for Normalizer methods). (villfa)
105105
. Fixed bug #74439 (wrong reflection for Locale methods). (villfa)
106106
. Fixed bug #74468 (wrong reflection on Collator::sortWithSortKeys). (villfa)
107+
. Fixed bug #63790 (test using Spoofchecker which may be unavailable). (Sara)
107108

108109
- Mbstring:
109110
. Implemented request #66024 (mb_chr() and mb_ord()). (Masakielastic, Yasuo)

ext/intl/tests/bug62915-2.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Bug #62915: cloning of several classes is defective
44
<?php
55
if (!extension_loaded('intl'))
66
die('skip intl extension not enabled');
7+
if (!class_exists('Spoofchecker'))
8+
die('skip intl extension does not have spoof checker');
79
--FILE--
810
<?php
911
class A extends IntlDateFormatter {

0 commit comments

Comments
 (0)