Home
last modified time | relevance | path

Searched refs:cmd (Results 51 – 75 of 77) sorted by path

1234

/PHP-8.0/ext/standard/tests/general_functions/
H A Dproc_open_redirect.phpt26 $cmd = [$php, '-r', 'echo "Test\n"; fprintf(STDERR, "Error");'];
27 $proc = proc_open($cmd, [1 => ['pipe', 'w'], 2 => ['redirect', 1]], $pipes);
34 $proc = proc_open($cmd, [1 => ['file', $fileName, 'w'], 2 => ['redirect', 1]], $pipes);
42 $proc = proc_open($cmd, [1 => $file, 2 => ['redirect', 1]], $pipes);
50 $proc = proc_open($cmd, [2 => ['redirect', 1]], $pipes);
H A Dproc_open_sockets1.phpt6 $cmd = [
17 $proc = proc_open($cmd, $spec, $pipes);
H A Dproc_open_sockets2.phpt37 $cmd = [
47 $proc = proc_open($cmd, $spec, $pipes);
H A Dproc_open_sockets3.phpt28 $cmd = [
38 $proc = proc_open($cmd, $spec, $pipes);
/PHP-8.0/ext/standard/tests/misc/
H A Dexec_basic1.phpt10 $cmd = "echo abc\n\0command";
12 var_dump(exec($cmd, $output));
17 var_dump(system($cmd, $output));
22 var_dump(passthru($cmd, $output));
/PHP-8.0/ext/standard/tests/streams/
H A Dbug60602.phpt14 $cmd = (substr(PHP_OS, 0, 3) == 'WIN') ? 'dir' : 'ls';
15 $p = proc_open($cmd, $descs, $pipes, '.', $environment);
H A Dbug64770.phpt14 $cmd = (substr(PHP_OS, 0, 3) == 'WIN') ? 'dir' : 'ls';
15 $p = proc_open($cmd, $descs, $pipes, '.', NULL, $other_opts);
H A Dbug78883.phpt16 $cmd = 'cmd.exe "/c START ^"^" /WAIT ' . PHP_BINARY . ' -r ^"var_dump(fgets(STDIN));"';
17 $proc = proc_open($cmd, $descriptorspec, $pipes);
24 // thus cmd is still running and we should kill it
H A Dproc_open_bug51800.phpt23 $cmd = "$php $callee";
53 $process = proc_open($cmd, $descriptors, $pipes);
H A Dproc_open_bug51800_right.phpt7 $cmd = "$php -n $callee";
37 $process = proc_open($cmd, $descriptors, $pipes);
H A Dproc_open_bug51800_right2.phpt7 $cmd = "$php -n $callee";
43 $process = proc_open($cmd, $descriptors, $pipes);
H A Dproc_open_bug64438.phpt9 …$cmd = PHP_BINARY . ' -n -r "fwrite(STDOUT, $in = file_get_contents(\'php://stdin\')); fwrite(STDE…
11 …$cmd = PHP_BINARY . ' -n -r \'fwrite(STDOUT, $in = file_get_contents("php://stdin")); fwrite(STDER…
17 $process = proc_open($cmd, $descriptors, $pipes, getcwd(), array(), $options);
H A Dstream_get_meta_data_process_basic.phpt7 $cmd = "echo here is some output";
9 $handle = popen($cmd, $mode);
/PHP-8.0/
H A Drun-tests.php2422 $cmd = "$php $pass_options $ini_settings -f \"$test_file\"$cmdRedirect < \"$tmp_post\"";
2453 $cmd = "$php $pass_options $ini_settings -f \"$test_file\"$cmdRedirect < \"$tmp_post\"";
2468 $cmd = "$php $pass_options $ini_settings -f \"$test_file\"$cmdRedirect < \"$tmp_post\"";
2481 $cmd = "$php $pass_options $ini_settings -f \"$test_file\"$cmdRedirect < \"$tmp_post\"";
2499 $cmd = "$php $pass_options $ini_settings -f \"$test_file\" $args$cmdRedirect";
2506 … $cmd = $valgrind->wrapCommand($cmd, $memcheck_filename, strpos($test_file, "pcre") !== false);
2519 COMMAND $cmd
2802 gdb --args {$cmd}
2805 USE_ZEND_ALLOC=0 valgrind $2 ${cmd}
2808 rr record $2 ${cmd}
[all …]
/PHP-8.0/sapi/apache2handler/
H A Dapache_config.c70 e.value = apr_pstrdup(cmd->pool, value); in real_value_hnd()
73 e.htaccess = ((cmd->override & (RSRC_CONF|ACCESS_CONF)) == 0); in real_value_hnd()
79 static const char *php_apache_value_handler(cmd_parms *cmd, void *dummy, const char *name, const ch… in php_apache_value_handler() argument
81 return real_value_hnd(cmd, dummy, name, value, PHP_INI_PERDIR); in php_apache_value_handler()
86 return real_value_hnd(cmd, dummy, name, value, PHP_INI_SYSTEM); in php_apache_admin_value_handler()
100 return real_value_hnd(cmd, dummy, arg1, bool_val, status); in real_flag_hnd()
103 static const char *php_apache_flag_handler(cmd_parms *cmd, void *dummy, const char *name, const cha… in php_apache_flag_handler() argument
105 return real_flag_hnd(cmd, dummy, name, value, PHP_INI_PERDIR); in php_apache_flag_handler()
110 return real_flag_hnd(cmd, dummy, name, value, PHP_INI_SYSTEM); in php_apache_admin_flag_handler()
113 static const char *php_apache_phpini_set(cmd_parms *cmd, void *mconfig, const char *arg) in php_apache_phpini_set() argument
[all …]
/PHP-8.0/sapi/cgi/tests/
H A D011.phpt17 $cmd = escapeshellcmd($GLOBALS['php']);
18 $cmd .= ' -n -dreport_zend_debug=0 -dhtml_errors=0 ' . escapeshellarg($GLOBALS['f']);
22 passthru($cmd);
/PHP-8.0/sapi/cli/tests/
H A Dcli_process_title_windows.phpt39 …$loaded_title = shell_exec("PowerShell -NoProfile \"get-process cmd*,powershell* | Select-Object m…
48 // the run-tests.php is executed forks a php.exe, which forks a cmd.exe, which then forks
H A Dext_loading.phpt15 $cmd = [
21 $proc = proc_open($cmd, [['null'], ['pipe', 'w'], ['redirect', 1]], $pipes);
H A Dphp_cli_server.inc19 $cmd = [$php_executable, '-t', $doc_root, '-n', ...$cmd_args, '-S', PHP_CLI_SERVER_ADDRESS];
21 $cmd[] = $router;
29 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru…
H A Dsapi_windows_set_ctrl_handler.phpt27 $cmd = PHP_BINARY . " -n " . $argv[0] . " 1";
30 …$proc = proc_open($cmd, $spec, $pipes, NULL, NULL, ["bypass_shell" => true, "create_process_group"…
40 $cmd = "tasklist /FI \"PID eq $child_pid\" /NH";
41 echo "Running `$cmd` to check the process indeed exists:\n";
42 echo trim(shell_exec($cmd)) . "\n";
/PHP-8.0/sapi/fpm/tests/
H A Dtester.inc368 exec($cmd, $output, $code);
396 $cmd = [self::findExecutable(), '-y', $configFile];
399 $cmd[] = '-O';
404 $cmd[] = '-F';
409 $cmd[] = '-dextension_dir=' . $extensionDir;
411 $cmd[] = '-dextension=' . $extension;
416 $cmd[] = '--allow-to-run-as-root';
418 $cmd = array_merge($cmd, $extraArgs);
419 $this->trace('Starting FPM using command:', $cmd, true);
421 $this->masterProcess = proc_open($cmd, $desc, $pipes);
[all …]
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg.c1871 phpdbg_param_t cmd; in main() local
1872 cmd.str = read_from_stdin; in main()
1873 cmd.len = strlen(read_from_stdin); in main()
1874 PHPDBG_COMMAND_HANDLER(stdin)(&cmd); in main()
H A Dphpdbg_cmd.c762 char *cmd = readline(phpdbg_get_prompt()); in phpdbg_read_input() local
765 if (!cmd) { in phpdbg_read_input()
770 add_history(cmd); in phpdbg_read_input()
771 buffer = estrdup(cmd); in phpdbg_read_input()
772 free(cmd); in phpdbg_read_input()
H A Dphpdbg_help.c143 void summary_print(phpdbg_command_t const * const cmd) in summary_print() argument
146 spprintf(&summary, 0, "Command: **%s** Alias: **%c** **%s**\n", cmd->name, cmd->alias, cmd->tip); in summary_print()
232 phpdbg_command_t const *cmd; in PHPDBG_COMMAND() local
241 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND()
244 summary_print(cmd); in PHPDBG_COMMAND()
245 pretty_print(get_help(cmd->name)); in PHPDBG_COMMAND()
250 for (cmd=phpdbg_prompt_commands; cmd->name; cmd++) { in PHPDBG_COMMAND()
251 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND()
252 summary_print(cmd); in PHPDBG_COMMAND()
267 return cmd->handler(param); in PHPDBG_COMMAND()
[all …]
H A Dphpdbg_prompt.c217 size_t cmd_len = strlen(cmd); in phpdbg_line_init()
221 while (cmd_len > 0L && isspace(cmd[cmd_len-1])) { in phpdbg_line_init()
225 cmd[cmd_len] = '\0'; in phpdbg_line_init()
227 if (*cmd && cmd_len > 0L && cmd[0] != '#') { in phpdbg_line_init()
229 if (memcmp(cmd, "<:", sizeof("<:")-1) == SUCCESS) { in phpdbg_line_init()
233 if (memcmp(cmd, ":>", sizeof(":>")-1) == SUCCESS) { in phpdbg_line_init()
252 memcpy(&state->code[state->code_len], cmd, cmd_len); in phpdbg_line_init()
260 char *input = phpdbg_read_input(cmd); in phpdbg_line_init()
319 char cmd[PHPDBG_MAX_CMD]; in phpdbg_try_file_init() local
324 while (fgets(cmd, PHPDBG_MAX_CMD, fp) != NULL) { in phpdbg_try_file_init()
[all …]

Completed in 122 milliseconds

1234