diff options
author | Nuno Lopes <nlopess@php.net> | 2006-12-31 15:28:56 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2006-12-31 15:28:56 +0000 |
commit | 9c754139fbe20feceb02e1dc429163616b415b86 (patch) | |
tree | f3b96b221ab2e9a5c3fcf20873482ce3d75a3aa4 | |
parent | 976c72cce7ca0acc5d5a46aba8875d572690a027 (diff) | |
download | php-git-9c754139fbe20feceb02e1dc429163616b415b86.tar.gz |
MFB: fix #36427. patch by jdolecek at NetBSD dot org
-rw-r--r-- | ext/standard/proc_open.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index a3f56dbff8..ada763a7d3 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -652,7 +652,8 @@ PHP_FUNCTION(proc_open) } #ifdef PHP_WIN32 - descriptors[ndesc].childend = (HANDLE)_get_osfhandle(fd); + descriptors[ndesc].childend = dup_fd_as_handle(fd); + _close(fd); #else descriptors[ndesc].childend = fd; #endif |