mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
better sub-process command
This commit is contained in:
parent
9d25abb408
commit
a4c0fc2e75
@ -2,7 +2,8 @@
|
||||
Check poll of a pipe works
|
||||
--FILE--
|
||||
<?php
|
||||
$fd = popen(PHP_BINARY . " ". __DIR__ . "/fixtures/proc.php 2>&1", "w");
|
||||
$php = (getenv('TEST_PHP_EXECUTABLE') ? : PHP_BINARY) . ' ' . (getenv('TEST_PHP_ARGS') ? : '-n');
|
||||
$fd = popen($php . " ". __DIR__ . "/fixtures/proc.php 2>&1", "w");
|
||||
stream_set_blocking($fd, 0);
|
||||
|
||||
$loop = uv_loop_new();
|
||||
|
Loading…
Reference in New Issue
Block a user