Fix #88 bad variable name
[m6w6/ext-http] / tests / helper / server.inc
index ea83f70679b073f1dc75dbbf30261c14f6567ef7..9ca96cd726e62c8bb0b8b64f39eb98438e6514a0 100644 (file)
@@ -124,7 +124,7 @@ 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') {