1--TEST--
2Test escapeshellarg() function: basic test
3--SKIPIF--
4<?php
5if( substr(PHP_OS, 0, 3) == "WIN" )
6  die("skip.. Do not run on 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(""));
16
17echo "Done\n";
18?>
19--EXPECT--
20Simple testcase for escapeshellarg() function
21string(14) "'Mr O'\''Neil'"
22string(15) "'Mr O\'\''Neil'"
23string(11) "'%FILENAME'"
24string(2) "''"
25Done
26