From 3e663ebfef31a5bfb9d2f80fba3a8b81930a4283 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 30 Mar 2008 12:17:39 +0000 Subject: Fixed bug #44564 (escapeshellarg removes UTF-8 multi-byte characters) --- sapi/cli/tests/bug44564.phpt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sapi/cli/tests/bug44564.phpt (limited to 'sapi/cli') diff --git a/sapi/cli/tests/bug44564.phpt b/sapi/cli/tests/bug44564.phpt new file mode 100644 index 0000000000..da05bbbb15 --- /dev/null +++ b/sapi/cli/tests/bug44564.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #44564 (escapeshellarg removes UTF-8 multi-byte characters) +--FILE-- +')); +var_dump(escapeshellarg('f~|;*Þ?')); +var_dump(escapeshellcmd('?€®đæ?')); +var_dump(escapeshellarg('aŊł€')); + +?> +--EXPECT-- +string(13) "f\{o\}\<€\>" +string(10) "'f~|;*Þ?'" +string(13) "\?€®đæ\?" +string(10) "'aŊł€'" -- cgit v1.2.1