php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
proc_open.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Author: Wez Furlong <wez@thebrainroom.com> |
14 +----------------------------------------------------------------------+
15 */
16
17#ifdef PHP_WIN32
18typedef HANDLE php_file_descriptor_t;
20# define PHP_INVALID_FD INVALID_HANDLE_VALUE
21#else
23typedef pid_t php_process_id_t;
24# define PHP_INVALID_FD (-1)
25#endif
26
27/* Environment block under Win32 is a NUL terminated sequence of NUL terminated
28 * name=value strings.
29 * Under Unix, it is an argv style array. */
30typedef struct _php_process_env {
31 char *envp;
32#ifndef PHP_WIN32
33 char **envarray;
34#endif
36
37typedef struct _php_process_handle {
39#ifdef PHP_WIN32
40 HANDLE childHandle;
41#endif
42 int npipes;
46#ifdef HAVE_SYS_WAIT_H
47 /* We can only request the status once before it becomes unavailable.
48 * Cache the result so we can request it multiple times. */
49 int cached_exit_wait_status_value;
50 bool has_cached_exit_wait_status;
51#endif
#define DWORD
Definition exif.c:1762
int php_file_descriptor_t
Definition proc_open.h:22
pid_t php_process_id_t
Definition proc_open.h:23
struct _php_process_env php_process_env
struct _php_process_handle php_process_handle
char ** envarray
Definition proc_open.h:33
php_process_id_t child
Definition proc_open.h:38
zend_resource ** pipes
Definition proc_open.h:43
zend_string * command
Definition proc_open.h:44
php_process_env env
Definition proc_open.h:45
struct _zend_string zend_string
struct _zend_resource zend_resource
Definition zend_types.h:99