Repository navigation
Commit 6ec6987
committed
Fix proc_open() null descriptor not inheritable on Windows
The nul handle was opened without security attributes, making it
non-inheritable. It was then passed to CreateProcess() via
STARTF_USESTDHANDLES, where the child cannot use a non-inheritable
handle. Use php_proc_open_security so the handle is inheritable, like
the pipe handles.
Closes GH-24335.1 parent 171f81f commit 6ec6987
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
| 848 | + | |
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| |||
0 commit comments