mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Clean up proc_open() implementation
Closes GH-5507.
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user