Add basic check for session support in PHP and die if not present
authorRob Church <robchurch@users.mediawiki.org>
Tue, 4 Apr 2006 08:50:05 +0000 (08:50 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 4 Apr 2006 08:50:05 +0000 (08:50 +0000)
RELEASE-NOTES
config/index.php

index f8622a6..473d238 100644 (file)
@@ -158,6 +158,7 @@ Installer:
          permissions, if said user exists
        * Changes to some of the wording of explanations for fields
 * (bug 1734) granting db permissions failed with db usernames containg '-'
+* Add basic check for session support in PHP and die if not present
 
 Maintenance:
 * Fix problem reported on mailing list where re-initialising stats didn't work (can't insert
index 7051b01..39e260a 100644 (file)
@@ -280,6 +280,10 @@ if( $conf->xml ) {
                If you're running Mandrake, install the php-xml package." );
 }
 
+# Crude check for session support
+if( !function_exists( 'session_name' ) )
+       dieout( "PHP's session module is missing. MediaWiki requires session support in order to function." );
+
 $memlimit = ini_get( "memory_limit" );
 $conf->raiseMemory = false;
 if( empty( $memlimit ) || $memlimit == -1 ) {