WyriHaximus · GitHub

Conversation

@WyriHaximus

jsor

does work on [`Windows Subsystem for Linux`](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux)
Due to the blocking nature of `STDIN`/`STDOUT`/`STDERR` pipes on Windows we can
not guarantee this package works as expected on Windows directly. As such when
instantiating `Process` it throws an exception when on Windows directly.
public function __construct($cmd, $cwd = null, array $env = null, array $options = array())
{
if (substr(strtolower(PHP_OS), 0, 3) === 'win') {
throw new \LogicException('Windows isn\'t supported.');

@WyriHaximus

jsor

jsor approved these changes Aug 10, 2017

mdrost

public function __construct($cmd, $cwd = null, array $env = null, array $options = array())
{
if (substr(strtolower(PHP_OS), 0, 3) === 'win') {
throw new \LogicException('Windows isn\'t supported due to the blocking nature of STDIN/STDOUT/STDERR pipes.');

clue

clue approved these changes Aug 12, 2017

@WyriHaximus

@clue clue mentioned this pull request

Jan 13, 2018

Closed

Read the original on github.com ↗