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



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

Reply via email to