Merge pull request #67 from remicollet/issue-phpbin

better sub-process command
This commit is contained in:
Bob Weinand 2019-05-03 11:13:05 +02:00 committed by GitHub
commit b1e39d0bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();