Home
last modified time | relevance | path

Searched refs:escapeshellarg (Results 1 – 25 of 60) sorted by relevance

123

/php-src/ext/standard/tests/general_functions/
H A Descapeshellarg_basic-win32.phpt2 Test escapeshellarg() function: basic test
10 echo "Simple testcase for escapeshellarg() function\n";
12 var_dump(escapeshellarg("Mr O'Neil"));
13 var_dump(escapeshellarg("Mr O\'Neil"));
14 var_dump(escapeshellarg("%FILENAME"));
15 var_dump(escapeshellarg("!FILENAME"));
16 var_dump(escapeshellarg(""));
21 Simple testcase for escapeshellarg() function
H A Descapeshellarg_basic-win32-mb.phpt2 Test escapeshellarg() function: basic test with UTF-8 strings
10 echo "Simple testcase for escapeshellarg() function\n";
12 var_dump(escapeshellarg("テストマルチバイ'ト・パス"));
13 var_dump(escapeshellarg("測試多字\'節路徑"));
14 var_dump(escapeshellarg("%füße"));
15 var_dump(escapeshellarg("!шницель"));
20 Simple testcase for escapeshellarg() function
H A Descapeshellarg_basic.phpt2 Test escapeshellarg() function: basic test
10 echo "Simple testcase for escapeshellarg() function\n";
12 var_dump(escapeshellarg("Mr O'Neil"));
13 var_dump(escapeshellarg("Mr O\'Neil"));
14 var_dump(escapeshellarg("%FILENAME"));
15 var_dump(escapeshellarg(""));
20 Simple testcase for escapeshellarg() function
H A Dbug69646.phpt2 Bug #69646 OS command injection vulnerability in escapeshellarg()
13 var_dump( $a, escapeshellarg($a) );
14 var_dump( $b, escapeshellarg($b) );
27 …'TEST_PHP_EXECUTABLE_ESCAPED') . " " . escapeshellarg($script) . " " . escapeshellarg($a) . " " .…
H A Descapeshellarg_bug71039.phpt2 Test escapeshellarg() string with \0 bytes
5 escapeshellarg("hello\0world");
10 Fatal error: Uncaught ValueError: escapeshellarg(): Argument #1 ($arg) must not contain any null by…
12 #0 %s(%d): escapeshellarg('hello\x00world')
H A Descapeshellarg_variation1-win32.phpt2 Test escapeshellarg() function : usage variations - different data types as $arg arg
11 echo "*** Testing escapeshellarg() : usage variations ***\n";
50 // loop through each element of $inputs to check the behaviour of escapeshellarg()
54 var_dump(escapeshellarg($input));
59 *** Testing escapeshellarg() : usage variations ***
H A Descapeshellarg_variation1.phpt2 Test escapeshellarg() function : usage variations - different data types as $y arg
11 echo "*** Testing escapeshellarg() : usage variations ***\n";
49 // loop through each element of $inputs to check the behaviour of escapeshellarg()
53 var_dump(escapeshellarg($input));
58 *** Testing escapeshellarg() : usage variations ***
H A Descapeshellarg_bug71270.phpt2 Test escapeshellarg() allowed argument length
9 escapeshellarg($var_2);
H A Dproc_open_pipes2.phpt9 $callee = escapeshellarg(__DIR__ . "/proc_open_pipes_sleep.inc");
H A Dbug70018.phpt8 $test_fl_escaped = escapeshellarg($test_fl);
H A Dproc_open-mb1.phpt13 $f_escaped = escapeshellarg($f);
H A Dproc_open-mb0.phpt13 $f_escaped = escapeshellarg($f);
/php-src/ext/standard/tests/file/
H A Dbug22414.phpt23 …$cmd = $php_escaped . $args . ' -r ' . escapeshellarg("readfile(@getenv('TEST_PHP_EXECUTABLE'));");
25 …$cmd = $php_escaped . $args . ' -r ' . escapeshellarg('passthru("'.$cmd.'");') . ' > '.escapeshell…
27 …scaped . $args . ' -r ' . "\"passthru('".addslashes($cmd)."');\"" . ' > '.escapeshellarg($tmpfile);
H A Dbug81145.phpt11 exec("fallocate -l " . (SIZE_4G-0x100) . " " . escapeshellarg($src), $output, $status);
26 exec("fallocate -l " . (SIZE_4G-0x100) . " " . escapeshellarg($src));
28 exec("fsutil file createnew " . escapeshellarg($src) . " " . (SIZE_4G-0x100));
/php-src/sapi/cli/tests/
H A Dbug44564.phpt2 Bug #44564 (escapeshellarg removes UTF-8 multi-byte characters)
13 var_dump(escapeshellarg('f~|;*Þ?'));
15 var_dump(escapeshellarg('aŊł€'));
H A D010.phpt16 $filename_escaped = escapeshellarg($filename);
18 $filename_txt_escaped = escapeshellarg($filename_txt);
H A Dbug62294.phpt7 exec($php . ' -n ' . escapeshellarg(__DIR__ . '/bug62294.inc'), $output, $exit_status);
H A Dbug65275.phpt7 exec($php . ' ' . escapeshellarg(__DIR__ . '/bug65275.inc'), $output, $exit_status);
H A Dargv_mb.phpt13 $argv_fl_escaped = escapeshellarg($argv_fl);
H A D010-2.phpt16 $filename_txt_escaped = escapeshellarg($filename_txt);
H A Dbug71624.phpt13 $filename_txt_escaped = escapeshellarg($filename_txt);
/php-src/
H A Drun-tests.php665 putenv("TEST_PHP_EXECUTABLE_ESCAPED=" . escapeshellarg($php));
666 $environment['TEST_PHP_EXECUTABLE_ESCAPED'] = escapeshellarg($php);
669 putenv("TEST_PHP_CGI_EXECUTABLE_ESCAPED=" . escapeshellarg($php_cgi ?? ''));
670 $environment['TEST_PHP_CGI_EXECUTABLE_ESCAPED'] = escapeshellarg($php_cgi ?? '');
673 putenv("TEST_PHPDBG_EXECUTABLE_ESCAPED=" . escapeshellarg($phpdbg ?? ''));
674 $environment['TEST_PHPDBG_EXECUTABLE_ESCAPED'] = escapeshellarg($phpdbg ?? '');
678 $pass_options .= " -c " . escapeshellarg($conf_passed);
804 $php_escaped = escapeshellarg($php);
824 $php_cgi_escaped = escapeshellarg($php_cgi);
833 $phpdbg_escaped = escapeshellarg($phpdbg);
/php-src/ext/standard/tests/ini_info/
H A Dphp_ini_loaded_file.phpt13 passthru($php.' -c '.escapeshellarg($inifile).' -r '.$code);
H A Dphp_ini_scanned_files.phpt6 $php = sprintf('%s -c %s', getenv('TEST_PHP_EXECUTABLE_ESCAPED'), escapeshellarg($inifile));
/php-src/sapi/cgi/tests/
H A Dbug75574_utf8.phpt16 $php = escapeshellarg(get_cgi_path());

Completed in 30 milliseconds

123