Skip to content

Commit 992b5f2

Browse files
committed
Make it easier to run curl tests standalone
Fall back to PHP_BINARY if TEST_PHP_EXECUTABLE not given.
1 parent 2bf451b commit 992b5f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/tests/server.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php declare(strict_types=1);
22

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

0 commit comments

Comments
 (0)