]> granicus.if.org Git - php/commitdiff
strcoll isn't always available
authorGabriel Caruso <carusogabriel34@gmail.com>
Sat, 3 Feb 2018 19:43:53 +0000 (17:43 -0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 4 Feb 2018 16:32:56 +0000 (17:32 +0100)
ext/standard/tests/strings/strcoll.phpt
ext/standard/tests/strings/strcoll_error.phpt

index 6fbfa04a1c98a92c4c1e1a22cb48995e986737e5..0d78ff37be48096b83262298e7ab011075774712 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Testing Basic behaviour of strcoll()
+--SKIPIF--
+<?php if (!function_exists('strcoll')) die('skip strcoll function not available') ?>
 --CREDITS--
 Sebastian Schürmann
 sebs@php.net
@@ -18,4 +20,3 @@ if($result > 0) {
 ?>
 --EXPECT--
 Pass
-
index 7eda9817eed80da3ad531e48c5867b1ebd70992a..56466bb63e803de812134f761bcc9b6673b4eb73 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
-Test strcoll() function : error conditions 
+Test strcoll() function : error conditions
+--SKIPIF--
+<?php if (!function_exists('strcoll')) die('skip strcoll function not available') ?>
 --FILE--
 <?php
 /* Prototype: int strcoll  ( string $str1  , string $str2  )
@@ -13,7 +15,7 @@ var_dump( strcoll() );
 var_dump( strcoll("") );
 
 echo "\n-- Testing strcoll() function with one argument --\n";
-var_dump( strcoll("Hello World") );  
+var_dump( strcoll("Hello World") );
 
 echo "\n-- Testing strcoll() function with more than expected no. of arguments --\n";
 $extra_arg = 10;
@@ -41,4 +43,4 @@ NULL
 
 Warning: strcoll() expects exactly 2 parameters, 3 given in %s on line %d
 NULL
-===Done===
\ No newline at end of file
+===Done===