PHP >= 5.1

This commit is contained in:
Roland Gruber 2007-10-04 17:49:59 +00:00
parent daadf5e28a
commit 98189841b5
4 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 4.1.16), po-debconf
Package: ldap-account-manager
Architecture: all
Depends: php5 (>= 5.2), php5-ldap, apache | apache-ssl | apache-perl | apache2 | httpd, php-fpdf, debconf (>= 0.2.26) | debconf-2.0
Depends: php5 (>= 5.1), php5-ldap, apache | apache-ssl | apache-perl | apache2 | httpd, php-fpdf, debconf (>= 0.2.26) | debconf-2.0
Recommends: php5-mhash
Suggests: ldap-server, sudo, perl, php5-mcrypt
Description: webfrontend for managing accounts in an LDAP directory

View File

@ -5,7 +5,7 @@ Installation Instructions for LAM
1. Requirements
- Apache webserver (SSL optional) with PHP module (PHP 5 (>= 5.2) with
- Apache webserver (SSL optional) with PHP module (PHP 5 (>= 5.1) with
ldap, gettext, xml and optional mcrypt)
- some LAM plugins may require additional PHP extensions (you will get a
note on the login page if something is missing)
@ -52,7 +52,7 @@ Installation Instructions for LAM
3. Setting up PHP
LAM runs with PHP5 (>= 5.2).
LAM runs with PHP5 (>= 5.1).
Needed changes in your php.ini:

View File

@ -20,7 +20,7 @@ LAM - Readme
Tilo Lutz <tilolutz@gmx.de>
Requirements:
PHP5 (>= 5.2)
PHP5 (>= 5.1)
Openldap (2.0 or greater)
A web-browser that supports CSS

View File

@ -53,8 +53,8 @@ if (! function_exists('gettext') || !function_exists('_')) {
if (! function_exists('utf8_decode')) {
$criticalErrors[] = array("ERROR", "Your PHP has no XML support!", "Please install the XML extension for PHP.");
}
// check if PHP >= 5.2
if (version_compare(phpversion(), '5.2.0') < 0) {
// check if PHP >= 5.1
if (version_compare(phpversion(), '5.1.0') < 0) {
$criticalErrors[] = array("ERROR", "LAM needs PHP 5 greater or equal as 5.2.0!", "Please upgrade your PHP installation.");
}
// check file permissions