File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ Name | Default | Description
31
31
` port ` | ` 8000 ` | The port used
32
32
` directory ` | ` null ` | The document root. By default is the current working directory
33
33
` script ` | ` null ` | The "router" script
34
+ ` stdio ` | ` inherit ` | stdio option passed to the spawned process - https://nodejs.org/api/child_process.html#child_process_options_stdio
34
35
` directives ` | ` {} ` | An object with the custom PHP directives
35
36
` config ` | ` null ` | The path of a custom php.ini file
36
37
` env ` | ` process.env ` | The environment variables passed
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module.exports = class PHPServer {
10
10
this . script = null ;
11
11
this . directives = { } ;
12
12
this . config = null ;
13
+ this . stdio = 'inherit' ;
13
14
this . env = process . env ;
14
15
15
16
if ( config ) {
@@ -50,7 +51,7 @@ module.exports = class PHPServer {
50
51
51
52
run ( cb ) {
52
53
this . process = spawn ( this . php , this . getParameters ( ) , {
53
- stdio : 'inherit' ,
54
+ stdio : this . stdio ,
54
55
env : this . env
55
56
} ) ;
56
57
You can’t perform that action at this time.
0 commit comments