]> granicus.if.org Git - php/commitdiff
Refixing to follow documented behaviour
authorZoe Slattery <zoe@php.net>
Wed, 29 Apr 2009 07:49:45 +0000 (07:49 +0000)
committerZoe Slattery <zoe@php.net>
Wed, 29 Apr 2009 07:49:45 +0000 (07:49 +0000)
ext/standard/tests/strings/strcoll.phpt

index a90d38b7db3a98604c2f9265c3e930181a078ff7..6fbfa04a1c98a92c4c1e1a22cb48995e986737e5 100644 (file)
@@ -11,8 +11,11 @@ Testfest 2009 Munich
  $b = 'A';
 
 setlocale (LC_COLLATE, 'C');
-print "C: " . strcoll ($a, $b) . "\n"; // prints 32
+$result = strcoll($a, $b);
+if($result > 0) {
+       echo "Pass\n";
+}
 ?>
---EXPECTF--
-Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
-C: -1
+--EXPECT--
+Pass
+