From 45d616c447ab3626bd93d304a8a78e7e2938f6b7 Mon Sep 17 00:00:00 2001 From: John Stevenson Date: Tue, 8 Oct 2019 14:46:37 +0100 Subject: [PATCH] Add Windows proc-open errors to troubleshooting.md As per these issues: https://github.com/composer/composer/issues/7186 https://github.com/composer/composer/issues/8152 --- doc/articles/troubleshooting.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/articles/troubleshooting.md b/doc/articles/troubleshooting.md index d0a64506f..7a5725ec4 100644 --- a/doc/articles/troubleshooting.md +++ b/doc/articles/troubleshooting.md @@ -211,6 +211,19 @@ To enable the swap you can use for example: ``` You can make a permanent swap file following this [tutorial](https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04). +## proc_open(): failed to open stream errors (Windows) + +If composer shows proc_open(NUL) errors on Windows: + +`proc_open(NUL): failed to open stream: No such file or directory` + +This could be happening because you are working in a _OneDrive_ directory and +using a version of PHP that does not support the file system semantics of this +service. The issue was fixed in PHP 7.2.23 and 7.3.10. + +Alternatively it could be because the Windows Null Service is not enabled. For +more information, see this [issue](https://github.com/composer/composer/issues/7186#issuecomment-373134916). + ## Degraded Mode Due to some intermittent issues on Travis and other systems, we introduced a