php-src/ext/standard/tests/strings/strcoll.phpt

19 lines
356 B
Plaintext
Raw Normal View History

2009-04-25 18:33:50 +00:00
--TEST--
Testing Basic behaviour of strcoll()
--CREDITS--
Sebastian Schürmann
sebs@php.net
Testfest 2009 Munich
--FILE--
<?php
$a = 'a';
$b = 'A';
setlocale (LC_COLLATE, 'C');
2009-04-28 09:05:25 +00:00
print "C: " . strcoll ($a, $b) . "\n"; // prints 32
2009-04-25 18:33:50 +00:00
?>
2009-04-28 09:05:25 +00:00
--EXPECTF--
Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
C: -1