mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
18 lines
399 B
Plaintext
18 lines
399 B
Plaintext
|
--TEST--
|
|||
|
Test strtoupper on non-ASCII characters
|
|||
|
--POST--
|
|||
|
--GET--
|
|||
|
--FILE--
|
|||
|
<?php
|
|||
|
$chars = "<22><><EFBFBD>";
|
|||
|
setlocale(LC_ALL, "C");
|
|||
|
// Not sure which is most portable. BSD's answer to
|
|||
|
// this one. A small array based on PHP_OS should
|
|||
|
// cover a majority of systems and makes the problem
|
|||
|
// of locales transparent for the end user.
|
|||
|
setlocale(LC_CTYPE, "ISO8859-1");
|
|||
|
print(strtoupper($chars));
|
|||
|
?>
|
|||
|
--EXPECT--
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>
|