]> granicus.if.org Git - php/commitdiff
Bugfix 63790 - Don't try to use Spoofchecker when unavailable
authorSara Golemon <pollita@php.net>
Thu, 18 May 2017 00:23:15 +0000 (17:23 -0700)
committerSara Golemon <pollita@php.net>
Thu, 18 May 2017 00:25:23 +0000 (17:25 -0700)
ICUSpoofChecker was introduced with 4.2 and may be
unavailable in some cases.
Skip this test when its not present.

NEWS
ext/intl/tests/bug62915-2.phpt

diff --git a/NEWS b/NEWS
index 8881d3c37c756bab396f81fca1cf7aefdece79ed..8cce767459d86933fdecf0ce22449d4513a4ef8a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -104,6 +104,7 @@ PHP                                                                        NEWS
   . Fixed bug #74433 (wrong reflection for Normalizer methods). (villfa)
   . Fixed bug #74439 (wrong reflection for Locale methods). (villfa)
   . Fixed bug #74468 (wrong reflection on Collator::sortWithSortKeys). (villfa)
+  . Fixed bug #63790 (test using Spoofchecker which may be unavailable). (Sara)
 
 - Mbstring:
   . Implemented request #66024 (mb_chr() and mb_ord()). (Masakielastic, Yasuo)
index bcb069cab6842957367006bc7074ea22200e492c..8dc3bd1512c88b673d04cc6b82c82b951701e82d 100644 (file)
@@ -4,6 +4,8 @@ Bug #62915: cloning of several classes is defective
 <?php
 if (!extension_loaded('intl'))
            die('skip intl extension not enabled');
+if (!class_exists('Spoofchecker'))
+               die('skip intl extension does not have spoof checker');
 --FILE--
 <?php
 class A extends IntlDateFormatter {