소스 검색

Added the detection & logging of APC.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1168 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 년 전
부모
커밋
443c5b3670
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      setup/index.php

+ 8 - 1
setup/index.php

@@ -113,7 +113,7 @@ function GetUploadTmpDir()
     }    
     return $sPath;
 }
- 
+
 /**
  * Helper function to check if the current version of PHP
  * is compatible with the application
@@ -290,6 +290,13 @@ function CheckPHPVersion(SetupWebPage $oP)
 			$oP->log_info("memory_limit is $iMemoryLimit, ok.");		
 		}
 	}
+	
+	// Special case for APC
+	if (extension_loaded('apc'))
+	{
+		$sAPCVersion = phpversion('apc');
+		$aOk[] = "APC detected (version $sAPCVersion). The APC cache will be used to speed-up iTop.";
+	}
 
 	if (!$bResult)
 	{