Lines Matching refs:i
234 int i; in proc_open_rsrc_dtor() local
243 for (i = 0; i < proc->npipes; i++) { in proc_open_rsrc_dtor()
244 if (proc->pipes[i] != 0) { in proc_open_rsrc_dtor()
245 zend_list_delete(proc->pipes[i]); in proc_open_rsrc_dtor()
246 proc->pipes[i] = 0; in proc_open_rsrc_dtor()
502 int i; in PHP_FUNCTION() local
773 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
774 switch(descriptors[i].index) { in PHP_FUNCTION()
776 si.hStdInput = descriptors[i].childend; in PHP_FUNCTION()
779 si.hStdOutput = descriptors[i].childend; in PHP_FUNCTION()
782 si.hStdError = descriptors[i].childend; in PHP_FUNCTION()
817 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
818 CloseHandle(descriptors[i].childend); in PHP_FUNCTION()
819 if (descriptors[i].parentend) { in PHP_FUNCTION()
820 CloseHandle(descriptors[i].parentend); in PHP_FUNCTION()
867 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
868 close(descriptors[i].childend); in PHP_FUNCTION()
869 if (descriptors[i].parentend) in PHP_FUNCTION()
870 close(descriptors[i].parentend); in PHP_FUNCTION()
901 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
902 switch (descriptors[i].mode & ~DESC_PARENT_MODE_WRITE) { in PHP_FUNCTION()
904 close(descriptors[i].parentend); in PHP_FUNCTION()
907 if (dup2(descriptors[i].childend, descriptors[i].index) < 0) in PHP_FUNCTION()
909 if (descriptors[i].childend != descriptors[i].index) in PHP_FUNCTION()
910 close(descriptors[i].childend); in PHP_FUNCTION()
935 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
936 close(descriptors[i].childend); in PHP_FUNCTION()
937 if (descriptors[i].parentend) in PHP_FUNCTION()
938 close(descriptors[i].parentend); in PHP_FUNCTION()
975 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
979 close_descriptor(descriptors[i].childend); in PHP_FUNCTION()
981 switch (descriptors[i].mode & ~DESC_PARENT_MODE_WRITE) { in PHP_FUNCTION()
983 switch(descriptors[i].mode_flags) { in PHP_FUNCTION()
1003 stream = php_stream_fopen_from_fd(_open_osfhandle((zend_intptr_t)descriptors[i].parentend, in PHP_FUNCTION()
1004 descriptors[i].mode_flags), mode_string, NULL); in PHP_FUNCTION()
1006 stream = php_stream_fopen_from_fd(descriptors[i].parentend, mode_string, NULL); in PHP_FUNCTION()
1009 fcntl(descriptors[i].parentend, F_SETFD, FD_CLOEXEC); in PHP_FUNCTION()
1020 add_index_zval(pipes, descriptors[i].index, retfp); in PHP_FUNCTION()
1022 proc->pipes[i] = Z_LVAL_P(retfp); in PHP_FUNCTION()
1026 proc->pipes[i] = 0; in PHP_FUNCTION()