From a4c0fc2e756c01ee2d7522265981148812201d65 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 29 Apr 2019 07:40:20 +0200 Subject: [PATCH] better sub-process command --- tests/330-poll-pipe.phpt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/330-poll-pipe.phpt b/tests/330-poll-pipe.phpt index 36fabca..6344c37 100644 --- a/tests/330-poll-pipe.phpt +++ b/tests/330-poll-pipe.phpt @@ -2,7 +2,8 @@ Check poll of a pipe works --FILE-- &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();