cvs: phpruntests /src/configuration/settings rtPhpCgiExecutableSetting.php
| From: | Zoe Slattery | Date: | Sat, 25 Apr 2009 17:18:23 +0000 |
| Subject: | cvs: phpruntests /src/configuration/settings rtPhpCgiExecutableSetting.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57230@lists.php.net to get a copy of this message | ||
zoe Sat Apr 25 17:18:23 2009 UTC
Modified files:
/phpruntests/src/configuration/settings
rtPhpCgiExecutableSetting.php
Log:
Adding a way of deriving the cgi executable from the cli. Matches current impl but will need win
specific test
http://cvs.php.net/viewvc.cgi/phpruntests/src/configuration/settings/rtPhpCgiExecutableSetting.php?r1=1.3&r2=1.4&diff_format=u
Index: phpruntests/src/configuration/settings/rtPhpCgiExecutableSetting.php
diff -u phpruntests/src/configuration/settings/rtPhpCgiExecutableSetting.php:1.3
phpruntests/src/configuration/settings/rtPhpCgiExecutableSetting.php:1.4
--- phpruntests/src/configuration/settings/rtPhpCgiExecutableSetting.php:1.3 Fri Apr 24 08:41:25
2009
+++ phpruntests/src/configuration/settings/rtPhpCgiExecutableSetting.php Sat Apr 25 17:18:23 2009
@@ -33,6 +33,18 @@
}
}
+ /**
+ *
+ */
+ public function setFromPhpCli($phpCli)
+ {
+ if(substr(dirname($phpCli),-3) == 'cli') {
+ $pathLength = strlen(dirname($phpCli)) - 3;
+ $sapiDir = substr(dirname($phpCli), 0, $pathLength);
+ $this->phpCgiExecutable = $sapiDir."cgi/php";
+ }
+ }
+
/**
* Supply the setting to the configuration on request