diff options
| author | Felipe Pena <felipe@php.net> | 2008-03-30 12:24:10 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-03-30 12:24:10 +0000 |
| commit | 3230a77d8956338a1a7995a8c20a333c5d39c024 (patch) | |
| tree | 57d55ea36906460337b69d9cdf501dab0c03343f /sapi/cli/tests | |
| parent | f8f26de7d5d93bf86bf89f34ff43b1a30bec185e (diff) | |
| download | php-git-3230a77d8956338a1a7995a8c20a333c5d39c024.tar.gz | |
MFB: Fixed bug #44564 (escapeshellarg removes UTF-8 multi-byte characters)
Diffstat (limited to 'sapi/cli/tests')
| -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Ŋł€'" |
