Skip to content
Snippets Groups Projects
Unverified Commit 83399e27 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst Committed by GitHub
Browse files

Merge pull request #821 from Scalesoft/feature/php-7.2

Add PHP 7.2 into Travis
parents 6e6f9bab 8f04700f
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ php: ...@@ -5,6 +5,7 @@ php:
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1 - 7.1
- 7.2
- hhvm - hhvm
matrix: matrix:
allow_failures: allow_failures:
......
...@@ -76,13 +76,15 @@ class SessionHandlerPHP extends SessionHandler ...@@ -76,13 +76,15 @@ class SessionHandlerPHP extends SessionHandler
$params = $this->getCookieParams(); $params = $this->getCookieParams();
session_set_cookie_params( if (!headers_sent()) {
$params['lifetime'], session_set_cookie_params(
$params['path'], $params['lifetime'],
$params['domain'], $params['path'],
$params['secure'], $params['domain'],
$params['httponly'] $params['secure'],
); $params['httponly']
);
}
$savepath = $config->getString('session.phpsession.savepath', null); $savepath = $config->getString('session.phpsession.savepath', null);
if (!empty($savepath)) { if (!empty($savepath)) {
......
...@@ -196,7 +196,7 @@ abstract class sspmod_core_Auth_UserPassBase extends SimpleSAML_Auth_Source { ...@@ -196,7 +196,7 @@ abstract class sspmod_core_Auth_UserPassBase extends SimpleSAML_Auth_Source {
} }
$attributes = $this->login($username, $password); $attributes = $this->login($username, $password);
assert('is_array($attributes)'); assert(is_array($attributes));
$state['Attributes'] = $attributes; $state['Attributes'] = $attributes;
return; return;
......
...@@ -443,7 +443,7 @@ class sspmod_saml_IdP_SAML2 ...@@ -443,7 +443,7 @@ class sspmod_saml_IdP_SAML2
public static function processSOAPAuthnRequest(array &$state) public static function processSOAPAuthnRequest(array &$state)
{ {
if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) { if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) {
SimpleSAML_Logger::error("ECP AuthnRequest did not contain Basic Authentication header"); SimpleSAML\Logger::error("ECP AuthnRequest did not contain Basic Authentication header");
// TODO Throw some sort of ECP-specific exception / convert this to SOAP fault // TODO Throw some sort of ECP-specific exception / convert this to SOAP fault
throw new SimpleSAML_Error_Error("WRONGUSERPASS"); throw new SimpleSAML_Error_Error("WRONGUSERPASS");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment