1--TEST-- 2Test escapeshellarg() function: basic test 3--SKIPIF-- 4<?php 5if( substr(PHP_OS, 0, 3) != "WIN" ) 6 die("skip.. only for Windows"); 7?> 8--FILE-- 9<?php 10echo "Simple testcase for escapeshellarg() function\n"; 11 12var_dump(escapeshellarg("Mr O'Neil")); 13var_dump(escapeshellarg("Mr O\'Neil")); 14var_dump(escapeshellarg("%FILENAME")); 15var_dump(escapeshellarg("!FILENAME")); 16var_dump(escapeshellarg("")); 17 18echo "Done\n"; 19?> 20--EXPECT-- 21Simple testcase for escapeshellarg() function 22string(11) ""Mr O'Neil"" 23string(12) ""Mr O\'Neil"" 24string(11) "" FILENAME"" 25string(11) "" FILENAME"" 26string(2) """" 27Done 28