com php-src: Add -P option to use the current binary: run-tests.php
| From: | Stanislav Malyshev | Date: | Sun, 18 Aug 2013 21:08:03 +0000 |
| Subject: | com php-src: Add -P option to use the current binary: run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72968@lists.php.net to get a copy of this message | ||
Commit: 3da2fb335db1f8ed64967164e090688ba0eb793d
Author: Stanislav Malyshev <stas@php.net> Sun, 18 Aug 2013 14:08:03 -0700
Parents: ac2d2b9b72d568fdd3d548d8fb22a85182a910a9
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3da2fb335db1f8ed64967164e090688ba0eb793d
Log:
Add -P option to use the current binary
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index 830dcd7..935f821 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -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>.