Skip to content

Commit 290fc6c

Browse files
authored
Merge pull request #41 from mikehaertl/20-add-stream_set_blocking-calls
Issue #20 Add stream_set_blocking() calls for proc_open()
2 parents 9754f7d + e7bdc8a commit 290fc6c

File tree

4 files changed

+381
-69
lines changed

4 files changed

+381
-69
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ $command->setStdIn('string');
9393
PHP working dir.
9494
* `$procEnv`: An array with environment variables to pass to `proc_open()`. Default is `null` for none.
9595
* `$procOptions`: An array of `other_options` for `proc_open()`. Default is `null` for none.
96+
* `$nonBlockingMode`: Whether to set the stdin/stdout/stderr streams to non-blocking
97+
mode when `proc_open()` is used. This allows to have huge inputs/outputs
98+
without making the process hang. The default is `null` which will enable
99+
the feature on Non-Windows systems. Set it to `true` or `false` to manually
100+
enable/disable it. Note that it doesn't work on Windows.
96101
* `$locale`: The locale to (temporarily) set with `setlocale()` before running the command.
97102
This can be set to e.g. `en_US.UTF-8` if you have issues with UTF-8 encoded arguments.
98103

0 commit comments

Comments
 (0)