com php-src: Bugfix 63790 - Don't try to use Spoofchecker when unavailable: NEWS ext/intl/tests/bug62915-2.phpt

[email protected] (Sara Golemon)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    b627e33a8dd514718fb8999fdbf6b961e35012e3
Author:    Sara Golemon <[email protected]>         Wed, 17 May 2017 17:23:15 -0700
Parents:   2649a9e1a9f102419d6aba3d248a1546eb3d0926
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=b627e33a8dd514718fb8999fdbf6b961e35012e3

Log:
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.

Changed paths:
  M  NEWS
  M  ext/intl/tests/bug62915-2.phpt


Diff:
diff --git a/NEWS b/NEWS
index 8881d3c..8cce767 100644
--- 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)
diff --git a/ext/intl/tests/bug62915-2.phpt b/ext/intl/tests/bug62915-2.phpt
index bcb069c..8dc3bd1 100644
--- a/ext/intl/tests/bug62915-2.phpt
+++ b/ext/intl/tests/bug62915-2.phpt
@@ -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 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.