Skip to content

Commit

Permalink
Merge pull request #41 from mikehaertl/20-add-stream_set_blocking-calls
Browse files Browse the repository at this point in the history
Issue #20 Add stream_set_blocking() calls for proc_open()
  • Loading branch information
mikehaertl committed Aug 17, 2019
2 parents 9754f7d + e7bdc8a commit 290fc6c
Show file tree
Hide file tree
Showing 4 changed files with 381 additions and 69 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ $command->setStdIn('string');
PHP working dir.
* `$procEnv`: An array with environment variables to pass to `proc_open()`. Default is `null` for none.
* `$procOptions`: An array of `other_options` for `proc_open()`. Default is `null` for none.
* `$nonBlockingMode`: Whether to set the stdin/stdout/stderr streams to non-blocking
mode when `proc_open()` is used. This allows to have huge inputs/outputs
without making the process hang. The default is `null` which will enable
the feature on Non-Windows systems. Set it to `true` or `false` to manually
enable/disable it. Note that it doesn't work on Windows.
* `$locale`: The locale to (temporarily) set with `setlocale()` before running the command.
This can be set to e.g. `en_US.UTF-8` if you have issues with UTF-8 encoded arguments.

Expand Down
Loading

0 comments on commit 290fc6c

Please sign in to comment.