summaryrefslogtreecommitdiff
path: root/ext/standard/proc_open.h
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2006-12-31 14:47:17 +0000
committerNuno Lopes <nlopess@php.net>2006-12-31 14:47:17 +0000
commit877ee656224faf7b1dfc69b4af3740fa8c89d7c1 (patch)
tree525b95811dac671cd2b61b38304a36f933044eb5 /ext/standard/proc_open.h
parent5298554fb69c5c7e428b3feb6cec164391b00eb7 (diff)
downloadphp-git-877ee656224faf7b1dfc69b4af3740fa8c89d7c1.tar.gz
Fixed bug #38542 (proc_get_status() returns wrong PID on windows)
Diffstat (limited to 'ext/standard/proc_open.h')
-rw-r--r--ext/standard/proc_open.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/standard/proc_open.h b/ext/standard/proc_open.h
index d1d4c1c450..5e07f2e5af 100644
--- a/ext/standard/proc_open.h
+++ b/ext/standard/proc_open.h
@@ -19,7 +19,7 @@
#ifdef PHP_WIN32
typedef HANDLE php_file_descriptor_t;
-typedef HANDLE php_process_id_t;
+typedef DWORD php_process_id_t;
#else
typedef int php_file_descriptor_t;
typedef pid_t php_process_id_t;
@@ -40,6 +40,9 @@ typedef struct _php_process_env {
struct php_process_handle {
php_process_id_t child;
+#ifdef PHP_WIN32
+ HANDLE childHandle;
+#endif
int npipes;
long pipes[PHP_PROC_OPEN_MAX_DESCRIPTORS];
char *command;