cvs: php-src /ext/standard/tests/strings strcoll.phpt
| From: | Zoe Slattery | Date: | Wed, 29 Apr 2009 07:49:45 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/strings strcoll.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57372@lists.php.net to get a copy of this message | ||
zoe Wed Apr 29 07:49:45 2009 UTC
Modified files:
/php-src/ext/standard/tests/strings strcoll.phpt
Log:
Refixing to follow documented behaviour
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/strcoll.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/strings/strcoll.phpt
diff -u php-src/ext/standard/tests/strings/strcoll.phpt:1.3
php-src/ext/standard/tests/strings/strcoll.phpt:1.4
--- php-src/ext/standard/tests/strings/strcoll.phpt:1.3 Tue Apr 28 09:05:25 2009
+++ php-src/ext/standard/tests/strings/strcoll.phpt Wed Apr 29 07:49:45 2009
@@ -11,8 +11,11 @@
$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
+