File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
sapi /
cli /
tests /
bug44564.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Bug #44564 (escapeshellarg removes UTF-8 multi-byte characters)
3: --SKIPIF--
4: <?php
5: if (false == setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8")) {
6: die("skip setlocale() failed\n");
7: }
8: ?>
9: --FILE--
10: <?php
11: setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8");
12: var_dump(escapeshellcmd('f{o}<€>'));
13: var_dump(escapeshellarg('f~|;*Þ?'));
14: var_dump(escapeshellcmd('?€®đæ?'));
15: var_dump(escapeshellarg('aŊł€'));
16:
17: ?>
18: --EXPECT--
19: string(13) "f\{o\}\<€\>"
20: string(10) "'f~|;*Þ?'"
21: string(13) "\?€®đæ\?"
22: string(10) "'aŊł€'"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>