Skip to content

Commit

Permalink
Make it easier to run curl tests standalone
Browse files Browse the repository at this point in the history
Fall back to PHP_BINARY if TEST_PHP_EXECUTABLE not given.
  • Loading branch information
nikic committed Aug 31, 2021
1 parent 2bf451b commit 992b5f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/curl/tests/server.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php declare(strict_types=1);

function curl_cli_server_start() {
$php_executable = getenv('TEST_PHP_EXECUTABLE');
$php_executable = getenv('TEST_PHP_EXECUTABLE') ?: PHP_BINARY;
$doc_root = __DIR__;
$router = "responder/get.inc";
$cmd = [$php_executable, '-t', $doc_root, '-n', '-S', 'localhost:0', $router];
Expand Down

0 comments on commit 992b5f2

Please sign in to comment.