summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-09-27 11:27:58 +0200
committerOndřej Surý <ondrej@sury.org>2013-09-27 11:27:58 +0200
commit1fd24dd3e14010b82febd3e300599f8d8f9c592c (patch)
tree60d089e947831184a569c1db6c23e45e18d46723 /run-tests.php
parent9989e8bb3d7b37e3b3b351feece5ed4346174ccf (diff)
downloadphp-1fd24dd3e14010b82febd3e300599f8d8f9c592c.tar.gz
New upstream version 5.5.4+dfsgupstream/5.5.4+dfsg
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index 8c8df610b..54a12a177 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -601,6 +601,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;
@@ -690,6 +699,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>.