diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-08-01 15:21:12 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-08-01 17:00:11 +0200 |
commit | bf53d30fae5178f15915cbe09116a5556b6829ae (patch) | |
tree | c22c033c699cb5228fe657218668fecc4d91424d | |
parent | 61e1147146ccddc08452c694fc82642154866e16 (diff) | |
download | php-git-bf53d30fae5178f15915cbe09116a5556b6829ae.tar.gz |
Fix forwarding of extra args in opcache server tests
-rw-r--r-- | ext/opcache/tests/php_cli_server.inc | 3 |
1 files changed, 3 insertions, 0 deletions
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, |