mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Clean up proc_open() implementation
Closes GH-5507.
This commit is contained in:
parent
66d57bf8d6
commit
51b0494e2f
3 changed files with 429 additions and 422 deletions
File diff suppressed because it is too large
Load diff
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue