Procházet zdrojové kódy

fixed route Install to encode source for php 5.5 and 5.6

Piotr Labudda před 9 roky
rodič
revize
23dc7df4ee
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      SE/se-lib/Route/Install.php

+ 3 - 3
SE/se-lib/Route/Install.php

@@ -194,7 +194,7 @@ jQuery(document).ready(function () {
 		$installPath = $appLicenceInfo->installPath;
 		if (empty($installPath)) throw new Exception("Install path not found");
 
-		$phpVersion = '5';// encode for PHP 5.x (currently supported PHP 5.0-5.6)
+		$phpVersionsForSgencoder = '--phpversion 5.5 --phpversion 5.6';// encode for PHP 5.x (currently supported PHP 5.0-5.6)
 
 		if ('1' == V::get('DBG_ENCODER_HELP', '', $_REQUEST)) {// encoder help
 			$cmd = "cd {$installPath}/SE && /Applications/SourceGuardian.app/Contents/MacOS/sgencoder --help ";
@@ -211,7 +211,7 @@ jQuery(document).ready(function () {
 			V::exec($cmd, $out, $ret);
 			DBG::_(true, true, "cmd: {$cmd} (return: {$ret})", $out, __CLASS__, __FUNCTION__, __LINE__);
 
-			$cmd = "cd {$installPath}/SE && /Applications/SourceGuardian.app/Contents/MacOS/sgencoder --phpversion {$phpVersion} -b- ";
+			$cmd = "cd {$installPath}/SE && /Applications/SourceGuardian.app/Contents/MacOS/sgencoder {$phpVersionsForSgencoder} -b- ";
 			//$mac = '38:c9:86:31:80:77';
 			//$cmd .= " --mac {$mac}";
 			foreach ($appLicenceInfo->domains as $domain) {
@@ -277,7 +277,7 @@ jQuery(document).ready(function () {
 		}
 
 		{
-			$cmd = "cd {$installPath}/SE && /Applications/SourceGuardian.app/Contents/MacOS/sgencoder --phpversion {$phpVersion} -b- ";
+			$cmd = "cd {$installPath}/SE && /Applications/SourceGuardian.app/Contents/MacOS/sgencoder {$phpVersionsForSgencoder} -b- ";
 			foreach ($appLicenceInfo->domains as $domain) {
 				$cmd .= " --domain {$domain} ";
 			}