From: Remi Collet Date: Thu, 19 Feb 2015 16:22:58 +0000 (+0100) Subject: change base port to make 32/64 simultenaous build easier X-Git-Tag: RELEASE_2_3_0~11 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=455306442cd599c5a5750a70053b1a5f47b08538 change base port to make 32/64 simultenaous build easier --- diff --git a/tests/helper/server.inc b/tests/helper/server.inc index 3d49a85..265a861 100644 --- a/tests/helper/server.inc +++ b/tests/helper/server.inc @@ -11,7 +11,7 @@ if ($php) { } function serve($cb) { - foreach (range(8000, 9000) as $port) { + foreach (range(8000+PHP_INT_SIZE, 9000) as $port) { if (($server = @stream_socket_server("tcp://localhost:$port"))) { fprintf(STDERR, "%s\n", $port); do { @@ -50,7 +50,7 @@ function server($handler, $cb) { function nghttpd($cb) { $spec = array(array("pipe","r"), array("pipe","w"), array("pipe","w")); - foreach (range(8000, 9000) as $port) { + foreach (range(8000+PHP_INT_SIZE, 9000) as $port) { $comm = "exec nghttpd -d html $port http2.key http2.crt"; if (($proc = proc_open($comm, $spec, $pipes, __DIR__))) { $stdin = $pipes[0];