diff options
| author | Felipe Pena <felipe@php.net> | 2008-03-30 12:17:39 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-03-30 12:17:39 +0000 |
| commit | 3e663ebfef31a5bfb9d2f80fba3a8b81930a4283 (patch) | |
| tree | 22b75540e9e28d55f3cfa098c5eecc1541fc4d0d /sapi/cli | |
| parent | fd6f77d569962033261a6d6e6bb799b1a4cd09e2 (diff) | |
| download | php-git-3e663ebfef31a5bfb9d2f80fba3a8b81930a4283.tar.gz | |
Fixed bug #44564 (escapeshellarg removes UTF-8 multi-byte characters)
Diffstat (limited to 'sapi/cli')
| -rw-r--r-- | sapi/cli/tests/bug44564.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
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-- +<?php + +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Ŋł€'" |
