1--TEST-- 2Test escapeshellarg() function: basic test with UTF-8 strings 3--SKIPIF-- 4<?php 5if( substr(PHP_OS, 0, 3) != "WIN" ) 6 die("skip.. only for Windows"); 7?> 8--FILE-- 9<?php 10/* Prototype : string escapeshellarg ( string $arg ) 11 * Description: Escape a string to be used as a shell argument. 12 * Source code: ext/standard/exec.c 13 * Alias to functions: 14 */ 15 16echo "Simple testcase for escapeshellarg() function\n"; 17 18var_dump(escapeshellarg("テストマルチバイ'ト・パス")); 19var_dump(escapeshellarg("測試多字\'節路徑")); 20var_dump(escapeshellarg("%füße")); 21var_dump(escapeshellarg("!шницель")); 22 23echo "Done\n"; 24?> 25--EXPECT-- 26Simple testcase for escapeshellarg() function 27string(39) ""テストマルチバイ'ト・パス"" 28string(25) ""測試多字\'節路徑"" 29string(9) "" füße"" 30string(17) "" шницель"" 31Done 32