ktbartholomew / saml-20-single-sign-on

Wordpress plugin that makes a Wordpress site act as a SAML service provider
GNU General Public License v2.0
37 stars 22 forks source link

Version 0.9.4 throws fatal error when using PHP 5.3 or older #11

Open ktbartholomew opened 8 years ago

ktbartholomew commented 8 years ago

Confirmed on PHP 5.3 running under IIS.

with WP_DEBUG enabled, complains about a syntax error (unexpected [) on https://github.com/ktbartholomew/saml-20-single-sign-on/blob/master/src/saml/config/authsources.php#L9

Confirmed that changing that section to two separate statements fixes the issue.

$idp = array_keys(parse_ini_file($idp_file ,true));
$idp = $idp[0];