Lines Matching refs:escapeshellarg

2 Test escapeshellarg() function : error conditions -  wrong numbers of parameters
6 /* Prototype : string escapeshellarg ( string $arg )
12 * Pass an incorrect number of arguments to escapeshellarg() to test behaviour
15 echo "*** Testing escapeshellarg() : error conditions ***\n";
18 echo "\n-- Testing escapeshellarg() function with no arguments --\n";
19 var_dump( escapeshellarg() );
21 echo "\n-- Testing escapeshellarg() function with more than expected no. of arguments --\n";
24 var_dump( escapeshellarg($arg, $extra_arg) );
26 echo "\n-- Testing escapeshellarg() function with a object supplied for argument --\n";
33 var_dump( escapeshellarg($arg));
35 echo "\n-- Testing escapeshellarg() function with a resource supplied for argument --\n";
37 var_dump( escapeshellarg($fp));
40 echo "\n-- Testing escapeshellarg() function with a array supplied for argument --\n";
42 var_dump( escapeshellarg($arg));
47 *** Testing escapeshellarg() : error conditions ***
49 -- Testing escapeshellarg() function with no arguments --
51 Warning: escapeshellarg() expects exactly 1 parameter, 0 given in %s on line %d
54 -- Testing escapeshellarg() function with more than expected no. of arguments --
56 Warning: escapeshellarg() expects exactly 1 parameter, 2 given in %s on line %d
59 -- Testing escapeshellarg() function with a object supplied for argument --
61 Warning: escapeshellarg() expects parameter 1 to be string, object given in %s on line %d
64 -- Testing escapeshellarg() function with a resource supplied for argument --
66 Warning: escapeshellarg() expects parameter 1 to be string, resource given in %s on line %d
69 -- Testing escapeshellarg() function with a array supplied for argument --
71 Warning: escapeshellarg() expects parameter 1 to be string, array given in %s on line %d