From: Rob Church Date: Mon, 26 Jun 2006 13:05:40 +0000 (+0000) Subject: Check for preg_match() existence when installing and die out whining about PCRE if... X-Git-Tag: 1.31.0-rc.0~56591 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=afb00bb98ce287af151c99987c29f8692bb70863;p=lhc%2Fweb%2Fwiklou.git Check for preg_match() existence when installing and die out whining about PCRE if it's not there, instead of throwing a fatal error --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 63684f8412..858f7c0b2c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -568,6 +568,8 @@ Some default configuration options have changed: localizble extensions magic words. * Update to Romanian translation (ro) * Update to Esperanto translation (eo) +* Check for preg_match() existence when installing and die out whining about PCRE + if it's not there, instead of throwing a fatal error == Compatibility == diff --git a/config/index.php b/config/index.php index b76bda15fc..ebb210ac4d 100644 --- a/config/index.php +++ b/config/index.php @@ -293,6 +293,10 @@ if( $conf->xml ) { if( !function_exists( 'session_name' ) ) dieout( "PHP's session module is missing. MediaWiki requires session support in order to function." ); +# Likewise for PCRE +if( !function_exists( 'preg_match' ) ) + dieout( "The PCRE regular expression functions are missing. MediaWiki requires these in order to function." ); + $memlimit = ini_get( "memory_limit" ); $conf->raiseMemory = false; if( empty( $memlimit ) || $memlimit == -1 ) {