From afb00bb98ce287af151c99987c29f8692bb70863 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 26 Jun 2006 13:05:40 +0000 Subject: [PATCH] Check for preg_match() existence when installing and die out whining about PCRE if it's not there, instead of throwing a fatal error --- RELEASE-NOTES | 2 ++ config/index.php | 4 ++++ 2 files changed, 6 insertions(+) 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 ) { -- 2.20.1