Clean up proc_open() implementation

Closes GH-5507.
This commit is contained in:
Alex Dowad 2020-05-01 13:03:16 +02:00 committed by Nikita Popov
parent 66d57bf8d6
commit 51b0494e2f
3 changed files with 429 additions and 422 deletions

File diff suppressed because it is too large Load diff

View file

@ -17,9 +17,11 @@
#ifdef PHP_WIN32
typedef HANDLE php_file_descriptor_t;
typedef DWORD php_process_id_t;
# define PHP_INVALID_FD INVALID_HANDLE_VALUE
#else
typedef int php_file_descriptor_t;
typedef pid_t php_process_id_t;
# define PHP_INVALID_FD (-1)
#endif
/* Environment block under win32 is a NUL terminated sequence of NUL terminated

View file

@ -53,7 +53,7 @@ proc_close($proc);
?>
--EXPECTF--
Missing redirection target
Redirection target must be an integer
Redirection target must be of type int, string given
Warning: proc_open(): Redirection target 42 not found in %s