drop dep on ext-propro (dysfunctional with PHP 8)
[m6w6/ext-http] / tests / helper / server.inc
index ea83f70679b073f1dc75dbbf30261c14f6567ef7..f203ed6c50f1696253e1a06d6e3439e0db95cc7c 100644 (file)
@@ -24,7 +24,7 @@ if ($php) {
        define("PHP_BIN", PHP_BINDIR.DIRECTORY_SEPARATOR."php");
 }
 
-foreach (array("raphf", "propro", "http") as $ext) {
+foreach (array("raphf", "http") as $ext) {
        if (!extension_loaded($ext)) {
                dl(ext_lib_name($ext));
        }
@@ -124,14 +124,14 @@ function server($handler, $cb) {
                        continue;
                }
                if ($argList[$i] === '-d') {
-                       $args[] = '-d' . $args[++$i];
+                       $args[] = '-d' . $argList[++$i];
                        continue;
                }
                if (substr($argList[$i], 0, 2) === '-d') {
                        $args[] = $argList[$i];
                }
        }
-       foreach (['raphf', 'propro', 'http'] as $ext) {
+       foreach (['raphf', 'http'] as $ext) {
                if (null !== $arg = get_extension_load_arg(PHP_BIN, $args, $ext)) {
                        $args[] = $arg;
                }