コード例 #1
0
 protected function checkService()
 {
     $passed = true;
     $logBinValue = null;
     if (!InstallUtil::checkDatabaseLogBinValue('mysql', $this->form->databaseHostname, $this->form->databaseUsername, $this->form->databasePassword, $this->form->databasePort, $this->minimumUploadRequireBytes, $logBinValue)) {
         $logBinTrustFunctionCreatorsValue = null;
         if (!InstallUtil::checkDatabaseLogBinTrustFunctionCreatorsValue('mysql', $this->form->databaseHostname, $this->form->databaseUsername, $this->form->databasePassword, $this->form->databasePort, $this->minimumUploadRequireBytes, $logBinTrustFunctionCreatorsValue)) {
             $this->message = Zurmo::t('InstallModule', 'Database log_bin=on. Either set log_bin=off or set log_bin_trust_function_creators=on.');
             // Not Coding Standard
             $passed = false;
         } else {
             $this->message = Zurmo::t('InstallModule', 'Database log_bin=on and log_bin_trust_function_creators=on and therefore satisfies this requirement');
             // Not Coding Standard
             $passed = true;
         }
     } else {
         $this->message = Zurmo::t('InstallModule', 'Database log_bin=off and therefore satisfies this requirement.');
         // Not Coding Standard
     }
     return $passed;
 }
コード例 #2
0
 /**
  * Simple test to confirm the check doesnt break.
  */
 public function testCheckDatabaseLogBinTrustFunctionCreatorsValue()
 {
     $logBinTrustFunctionCreatorsValue = null;
     $this->assertNotNull(InstallUtil::checkDatabaseLogBinTrustFunctionCreatorsValue('mysql', $this->temporaryDatabaseHostname, $this->temporaryDatabaseName, $this->temporaryDatabaseUsername, $this->temporaryDatabasePassword, $this->temporaryDatabasePort, $logBinTrustFunctionCreatorsValue));
 }