cvs: phpruntests /src/configuration rtRuntestsConfiguration.php
| From: | Zoe Slattery | Date: | Sat, 25 Apr 2009 17:18:13 +0000 |
| Subject: | cvs: phpruntests /src/configuration rtRuntestsConfiguration.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57229@lists.php.net to get a copy of this message | ||
zoe Sat Apr 25 17:18:13 2009 UTC
Modified files:
/phpruntests/src/configuration rtRuntestsConfiguration.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/rtRuntestsConfiguration.php?r1=1.3&r2=1.4&diff_format=u
Index: phpruntests/src/configuration/rtRuntestsConfiguration.php
diff -u phpruntests/src/configuration/rtRuntestsConfiguration.php:1.3
phpruntests/src/configuration/rtRuntestsConfiguration.php:1.4
--- phpruntests/src/configuration/rtRuntestsConfiguration.php:1.3 Fri Apr 24 08:41:25 2009
+++ phpruntests/src/configuration/rtRuntestsConfiguration.php Sat Apr 25 17:18:13 2009
@@ -104,7 +104,13 @@
*
*/
private function setPhpCgiExecutable()
- {
+ {
+ //If the CGI executable hasn't been set using an environmental variable or
'auto', try and derive it from
+ //the name of the cli executable.
+ //TODO This is *ix specific, need a WIN specific class PhpCgiExecutable setting class
+ if($this->setters['PhpCgiExecutable']->get() == null) {
+
$this->setters['PhpCgiExecutable']->setFromPhpCli($this->settings['PhpExecutable']);
+ }
$this->settings['PhpCgiExecutable']=
$this->setters['PhpCgiExecutable']->get();
}