Lines Matching refs:NULL

161 	zend_hash_init(env_hash, cnt, NULL, NULL, 0);  in _php_array_to_envp()
245 if (proc->pipes[i] != NULL) { in proc_open_rsrc_dtor()
248 proc->pipes[i] = NULL; in proc_open_rsrc_dtor()
299 le_proc_open = zend_register_list_destructors_ex(proc_open_rsrc_dtor, NULL, "process", in PHP_MINIT_FUNCTION()
319 if (proc == NULL) { in PHP_FUNCTION()
342 if (proc == NULL) { in PHP_FUNCTION()
372 if (proc == NULL) { in PHP_FUNCTION()
425 .lpSecurityDescriptor = NULL,
439 return NULL; in dup_handle()
475 return NULL; in get_valid_arg_string()
481 return NULL; in get_valid_arg_string()
500 if (strchr(special_chars, ZSTR_VAL(arg)[i]) != NULL) { in is_special_character_present()
534 if (has_special_character && strchr(special_chars, c) != NULL) { in append_win_escaped_arg()
554 LPWSTR file_part = NULL; in is_executed_by_cmd()
565 prog_name_wide = NULL; in is_executed_by_cmd()
567 if (GetFullPathNameW(long_name, MAX_PATH, full_name, &file_part) == 0 || file_part == NULL) { in is_executed_by_cmd()
596 return NULL; in create_win_command_from_args()
620 return item != NULL && in get_option()
663 if (cmdw_shell == NULL) { in convert_command_to_use_shell()
664 php_error_docref(NULL, E_WARNING, "Command conversion failed"); in convert_command_to_use_shell()
670 php_error_docref(NULL, E_WARNING, "Command conversion failed"); in convert_command_to_use_shell()
685 zend_string *command = NULL; in get_command_from_array()
694 (*argv)[i] = NULL; in get_command_from_array()
695 if (command != NULL) { in get_command_from_array()
698 return NULL; in get_command_from_array()
709 (*argv)[i] = NULL; in get_command_from_array()
722 if ((array_item = zend_hash_index_find(Z_ARRVAL_P(array), index)) == NULL) { in get_string_parameter()
724 return NULL; in get_string_parameter()
733 FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); in set_proc_descriptor_to_blackhole()
734 if (desc->childend == NULL) { in set_proc_descriptor_to_blackhole()
735 php_error_docref(NULL, E_WARNING, "Failed to open nul"); in set_proc_descriptor_to_blackhole()
741 php_error_docref(NULL, E_WARNING, "Failed to open /dev/null: %s", strerror(errno)); in set_proc_descriptor_to_blackhole()
757 if (openpty(master_fd, slave_fd, NULL, NULL, NULL)) { in set_proc_descriptor_to_pty()
758 php_error_docref(NULL, E_WARNING, "Could not open PTY (pseudoterminal): %s", strerror(errno)); in set_proc_descriptor_to_pty()
769 php_error_docref(NULL, E_WARNING, "PTY (pseudoterminal) not supported on this system"); in set_proc_descriptor_to_pty()
792 php_error_docref(NULL, E_WARNING, "Unable to create pipe %s", strerror(errno)); in set_proc_descriptor_to_pipe()
830 php_error_docref(NULL, E_WARNING, "Unable to create socket pair: %s", ZSTR_VAL(err)); in set_proc_descriptor_to_socket()
851 REPORT_ERRORS|STREAM_WILL_CAST, NULL); in set_proc_descriptor_to_file()
852 if (stream == NULL) { in set_proc_descriptor_to_file()
869 SetFilePointer(desc->childend, 0, NULL, FILE_END); in set_proc_descriptor_to_file()
882 if (*to == NULL) { in dup_proc_descriptor()
883 php_error_docref(NULL, E_WARNING, "Failed to dup() for descriptor " ZEND_LONG_FMT, nindex); in dup_proc_descriptor()
889 php_error_docref(NULL, E_WARNING, "Failed to dup() for descriptor " ZEND_LONG_FMT ": %s", in dup_proc_descriptor()
911 php_error_docref(NULL, E_WARNING, "Redirection target %d not found", target); in redirect_proc_descriptor()
940 zend_string *zmode = NULL, *zfile = NULL; in set_proc_descriptor_from_array()
946 if (zmode == NULL) { in set_proc_descriptor_from_array()
955 if ((zfile = get_string_parameter(descitem, 1, "file name parameter for 'file'")) == NULL) { in set_proc_descriptor_from_array()
958 if ((zmode = get_string_parameter(descitem, 2, "mode parameter for 'file'")) == NULL) { in set_proc_descriptor_from_array()
983 php_error_docref(NULL, E_WARNING, "%s is not a valid descriptor spec/mode", ZSTR_VAL(ztype)); in set_proc_descriptor_from_array()
999 if (stream == NULL) { in set_proc_descriptor_from_resource()
1030 php_error_docref(NULL, E_WARNING, "Unable to copy file descriptor %d (for pipe) into " \ in close_parentends_of_pipes()
1055 while (*arg != NULL) { in efree_argv()
1070 char *cwd = NULL; /* Optional argument */ in PHP_FUNCTION()
1072 zval *environment = NULL, *other_options = NULL; /* Optional arguments */ in PHP_FUNCTION()
1077 zval *descitem = NULL; in PHP_FUNCTION()
1080 descriptorspec_item *descriptors = NULL; in PHP_FUNCTION()
1089 wchar_t *cmdw = NULL, *cwdw = NULL, *envpw = NULL; in PHP_FUNCTION()
1097 char **argv = NULL; in PHP_FUNCTION()
1184 if (cwd == NULL) { in PHP_FUNCTION()
1187 php_error_docref(NULL, E_WARNING, "Cannot get current directory"); in PHP_FUNCTION()
1194 php_error_docref(NULL, E_WARNING, "CWD conversion failed"); in PHP_FUNCTION()
1220 php_error_docref(NULL, E_WARNING, "ENV conversion failed"); in PHP_FUNCTION()
1227 php_error_docref(NULL, E_WARNING, "Command conversion failed"); in PHP_FUNCTION()
1236 newprocok = CreateProcessW(NULL, cmdw, &php_proc_open_security, in PHP_FUNCTION()
1246 php_error_docref(NULL, E_WARNING, "CreateProcess failed, error code: %u", dw); in PHP_FUNCTION()
1279 execle("/bin/sh", "sh", "-c", ZSTR_VAL(command_str), NULL, env.envarray); in PHP_FUNCTION()
1281 execl("/bin/sh", "sh", "-c", ZSTR_VAL(command_str), NULL); in PHP_FUNCTION()
1287 php_error_docref(NULL, E_WARNING, "Exec failed: %s", strerror(errno)); in PHP_FUNCTION()
1292 php_error_docref(NULL, E_WARNING, "Fork failed: %s", strerror(errno)); in PHP_FUNCTION()
1319 php_stream *stream = NULL; in PHP_FUNCTION()
1324 char *mode_string = NULL; in PHP_FUNCTION()
1348 descriptors[i].mode_flags), mode_string, NULL); in PHP_FUNCTION()
1349 php_stream_set_option(stream, PHP_STREAM_OPTION_PIPE_BLOCKING, blocking_pipes, NULL); in PHP_FUNCTION()
1351 stream = php_stream_fopen_from_fd(descriptors[i].parentend, mode_string, NULL); in PHP_FUNCTION()
1354 stream = php_stream_sock_open_from_socket((php_socket_t) descriptors[i].parentend, NULL); in PHP_FUNCTION()
1356 proc->pipes[i] = NULL; in PHP_FUNCTION()