mike                                     Wed, 25 Jan 2012 19:36:36 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=322758

Log:
find a php-cgi which is a sibling of the php executable

Changed paths:
    U   php/php-src/trunk/run-tests.php

Modified: php/php-src/trunk/run-tests.php
===================================================================
--- php/php-src/trunk/run-tests.php     2012-01-25 19:32:58 UTC (rev 322757)
+++ php/php-src/trunk/run-tests.php     2012-01-25 19:36:36 UTC (rev 322758)
@@ -1357,6 +1357,9 @@
                        } else if (file_exists("./sapi/cgi/php-cgi")) {
                                $old_php = $php;
                                $php = realpath("./sapi/cgi/php-cgi") . ' -C ';
+                       } else if (file_exists(dirname($php) . "/php-cgi")) {
+                               $old_php = $php;
+                               $php = realpath(dirname($php) . "/php-cgi") . ' 
-C ';
                        } else {
                                show_result('SKIP', $tested, $tested_file, 
"reason: CGI not available");
                                if ($JUNIT) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to