mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
41 lines
516 B
PHP
41 lines
516 B
PHP
--TEST--
|
||
Case-insensitive string comparisons use case folding
|
||
--EXTENSIONS--
|
||
mbstring
|
||
--FILE--
|
||
<?php
|
||
|
||
$tests = [
|
||
["K", "K"],
|
||
["k", "K"],
|
||
["Å", "Å"],
|
||
["å", "Å"],
|
||
["ß", "ẞ"],
|
||
["Θ", "ϴ"],
|
||
["θ", "ϴ"],
|
||
["ϑ", "ϴ"],
|
||
["Ω", "Ω"],
|
||
["ω", "Ω"],
|
||
["I", "ı"],
|
||
["i", "ı"],
|
||
];
|
||
|
||
foreach ($tests as list($a, $b)) {
|
||
var_dump(mb_stripos($a, $b));
|
||
}
|
||
|
||
?>
|
||
--EXPECT--
|
||
int(0)
|
||
int(0)
|
||
int(0)
|
||
int(0)
|
||
int(0)
|
||
int(0)
|
||
int(0)
|
||
int(0)
|
||
int(0)
|
||
int(0)
|
||
bool(false)
|
||
bool(false)
|