X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fhelper%2Fserver.inc;h=091ff5cd483834d5c88d7e6304b42270bad9fe91;hp=029cd46e55359262f4288f6c2336e877db13706f;hb=1f37d09e4c7f55cf6f2c3c10ea3ec2424a482671;hpb=3c93fd628b6652171a01738d75791a73e4655359 diff --git a/tests/helper/server.inc b/tests/helper/server.inc index 029cd46..091ff5c 100644 --- a/tests/helper/server.inc +++ b/tests/helper/server.inc @@ -24,6 +24,18 @@ if ($php) { define("PHP_BIN", PHP_BINDIR.DIRECTORY_SEPARATOR."php"); } +foreach (array("raphf", "propro", "http") as $ext) { + if (!extension_loaded($ext)) { + switch (PHP_SHLIB_SUFFIX) { + case "dll": + dl("php_$ext.dll"); + break; + default: + dl($ext .".". PHP_SHLIB_SUFFIX); + } + } +} + function serve($cb) { /* stream_socket_server() automatically sets SO_REUSEADDR, * which is, well, bad if the tests are run in parallel