X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fhelper%2Fserver.inc;h=3d49a85363d7a714ebd80d2d020bd2c1f9cda454;hp=aa8559f8c41fbb3480f1e6dbcf6a02de0a3659b6;hb=62e6b88c7223f15646c8dcfd0e974b03cd5cf63a;hpb=e867316f1364f589eec67cc684703c874984430b 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();