From bf53d30fae5178f15915cbe09116a5556b6829ae Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 1 Aug 2019 15:21:12 +0200 Subject: [PATCH] Fix forwarding of extra args in opcache server tests --- ext/opcache/tests/php_cli_server.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/opcache/tests/php_cli_server.inc b/ext/opcache/tests/php_cli_server.inc index 8367715728..e32cf9f97f 100644 --- a/ext/opcache/tests/php_cli_server.inc +++ b/ext/opcache/tests/php_cli_server.inc @@ -8,6 +8,9 @@ function php_cli_server_start($ini = "") { $doc_root = __DIR__; $ini_array = preg_split('/\s+/', trim($ini)); + $ini_array = array_map(function($arg) { + return trim($arg, '\'"'); + }, $ini_array); $cmd = [$php_executable, '-t', $doc_root, '-n', ...$ini_array, '-S', PHP_CLI_SERVER_ADDRESS]; $descriptorspec = array( 0 => STDIN, -- 2.50.1