Skip to content

Commit 7840f27

Browse files
committed
Fix this test since it calls PHP itself
Almost certainly a better way to do this...
1 parent 7a81b0e commit 7840f27

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sapi/cli/tests/php_cli_server.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ function php_cli_server_start(
2424
file_put_contents($doc_root . '/' . ($router ?: 'index.php'), '<?php ' . $code . ' ?>');
2525
}
2626

27-
$cmd = [$php_executable, '-t', $doc_root, '-n', ...$cmd_args, '-S', 'localhost:0'];
27+
// XXX: This should ideally use the same INI overrides as run-tests
28+
$cmd = [$php_executable, '-d', 'error_ignore_args=1', '-t', $doc_root, '-n', ...$cmd_args, '-S', 'localhost:0'];
2829
if (!is_null($router)) {
2930
$cmd[] = $router;
3031
}

0 commit comments

Comments
 (0)