Skip to content
Snippets Groups Projects
Commit dcc884de authored by Olav Morken's avatar Olav Morken
Browse files

Require PHP version 5.2.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2117 44740490-163a-0410-bde0-09ae8108e29a
parent 15a5afc3
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ Prerequisites ...@@ -32,7 +32,7 @@ Prerequisites
------------- -------------
* Some webserver capable of executing PHP scripts. * Some webserver capable of executing PHP scripts.
* PHP version >= 5.2.0 if you are using simpleSAMLphp as an SP connected to a Shibboleth IdP; PHP version >= 5.1.2 if not. * PHP version >= 5.2.0.
* Suppoort for the following PHP extensions: * Suppoort for the following PHP extensions:
* Always required: `date`, `dom`, `hash`, `libxml`, `openssl`, `pcre`, `SPL`, `zlib` * Always required: `date`, `dom`, `hash`, `libxml`, `openssl`, `pcre`, `SPL`, `zlib`
* When encrypting assertions: `mcrypt` * When encrypting assertions: `mcrypt`
......
...@@ -88,11 +88,7 @@ $functionchecks = array( ...@@ -88,11 +88,7 @@ $functionchecks = array(
$funcmatrix = array(); $funcmatrix = array();
$funcmatrix[] = array( $funcmatrix[] = array(
'required' => 'required', 'required' => 'required',
'descr' => 'PHP Version >= 5.1.2. You run: ' . phpversion(), 'descr' => 'PHP Version >= 5.2. You run: ' . phpversion(),
'enabled' => version_compare(phpversion(), '5.1.2', '>='));
$funcmatrix[] = array(
'required' => 'reccomended',
'descr' => 'PHP Version >= 5.2 (Required for Shibboleth 1.3 SP)',
'enabled' => version_compare(phpversion(), '5.2', '>=')); 'enabled' => version_compare(phpversion(), '5.2', '>='));
foreach ($functionchecks AS $func => $descr) { foreach ($functionchecks AS $func => $descr) {
$funcmatrix[] = array('descr' => $descr[1], 'required' => $descr[0], 'enabled' => function_exists($func)); $funcmatrix[] = array('descr' => $descr[1], 'required' => $descr[0], 'enabled' => function_exists($func));
......
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