コード例 #1
0
	/**
	 * Set the messages specific to this test
	 *
	 */
	function _setMessages() {
		parent::_setMessages();

		$this->setMessageForResult(PHPSECINFO_TEST_RESULT_OK, 'en', "You are running PHP 4.4.4 or higher, or PHP 5.1.6 or higher.  These versions fix the security hole present in the cURL functions that allow it to bypass safe_mode and open_basedir restrictions.");
		$this->setMessageForResult(PHPSECINFO_TEST_RESULT_WARN, 'en', "A security hole present in your version of PHP allows the cURL functions to bypass safe_mode and open_basedir restrictions.  You should upgrade to the latest version of PHP.");

	}
コード例 #2
0
ファイル: file_support.php プロジェクト: rhertzog/lcs
 /**
  * Set the messages specific to this test
  *
  */
 function _setMessages()
 {
     parent::_setMessages();
     $this->setMessageForResult(PHPSECINFO_TEST_RESULT_OK, 'en', "file:// support in CURL seems to be disabled");
     $this->setMessageForResult(PHPSECINFO_TEST_RESULT_WARN, 'en', "libcurl's file:// support is enabled.  This can be used to bypass safe mode and open_basedir restrictions.  libcurl should be re-compiled with file:// support disabled");
 }