From c2a57645536f71cc206d658484359d477b454677 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 23 May 2006 16:44:25 +0000 Subject: updated test.php --- lib/debug.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib') diff --git a/lib/debug.php b/lib/debug.php index db8f08ea..b6564d8e 100644 --- a/lib/debug.php +++ b/lib/debug.php @@ -162,6 +162,24 @@ function check_php_iconv() { } // check_php_iconv +/** + * check_php_pcre + * This makes sure they have pcre (preg_???) support + * compiled into PHP this is required! + */ +function check_php_pcre() { + + if (!function_exists('preg_match')) { + $error['error_state'] = true; + $error['php_pcre'] = false; + } + + if ($error['error_state']) { return false; } + + return true; + +} // check_php_pcre + /*! @function check_config_values() @discussion checks to make sure that they have at -- cgit