mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Add -P option to use the current binary
This commit is contained in:
parent
ac2d2b9b72
commit
3da2fb335d
@ -597,6 +597,15 @@ if (isset($argc) && $argc > 1) {
|
||||
putenv("TEST_PHP_EXECUTABLE=$php");
|
||||
$environment['TEST_PHP_EXECUTABLE'] = $php;
|
||||
break;
|
||||
case 'P':
|
||||
if(constant('PHP_BINARY')) {
|
||||
$php = PHP_BINARY;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
putenv("TEST_PHP_EXECUTABLE=$php");
|
||||
$environment['TEST_PHP_EXECUTABLE'] = $php;
|
||||
break;
|
||||
case 'q':
|
||||
putenv('NO_INTERACTION=1');
|
||||
break;
|
||||
@ -686,6 +695,8 @@ Options:
|
||||
|
||||
-p <php> Specify PHP executable to run.
|
||||
|
||||
-P Use PHP_BINARY as PHP executable to run.
|
||||
|
||||
-q Quiet, no user interaction (same as environment NO_INTERACTION).
|
||||
|
||||
-s <file> Write output to <file>.
|
||||
|
Loading…
Reference in New Issue
Block a user