mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
23 lines
521 B
PHP
23 lines
521 B
PHP
--TEST--
|
|
Bug #44564 (escapeshellarg removes UTF-8 multi-byte characters)
|
|
--SKIPIF--
|
|
<?php
|
|
if (false == setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8")) {
|
|
die("skip setlocale() failed\n");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8");
|
|
var_dump(escapeshellcmd('f{o}<€>'));
|
|
var_dump(escapeshellarg('f~|;*Þ?'));
|
|
var_dump(escapeshellcmd('?€®đæ?'));
|
|
var_dump(escapeshellarg('aŊł€'));
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(13) "f\{o\}\<€\>"
|
|
string(10) "'f~|;*Þ?'"
|
|
string(13) "\?€®đæ\?"
|
|
string(10) "'aŊł€'"
|