From: Remi Collet Date: Thu, 19 Feb 2015 16:12:46 +0000 (+0100) Subject: honours TEST_PHP_EXECUTABLE and TEST_PHP_ARGS (set by "make test") X-Git-Tag: RELEASE_2_3_0~12 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=62e6b88c7223f15646c8dcfd0e974b03cd5cf63a;p=m6w6%2Fext-http honours TEST_PHP_EXECUTABLE and TEST_PHP_ARGS (set by "make test") --- diff --git a/tests/helper/server.inc b/tests/helper/server.inc index aa8559f..3d49a85 100644 --- a/tests/helper/server.inc +++ b/tests/helper/server.inc @@ -1,8 +1,13 @@ - $v) { + if (!$v) unset($args[$k]); + } + proc(PHP_BIN, $args, $cb); } function nghttpd($cb) { @@ -77,7 +87,7 @@ function proc($bin, $args, $cb) { $stdin = $pipes[0]; $stdout = $pipes[1]; $stderr = $pipes[2]; - + do { $port = trim(fgets($stderr)); $R = array($stderr); $W = array(); $E = array();