diff options
Diffstat (limited to 'lib/debug.php')
-rw-r--r-- | lib/debug.php | 18 |
1 files changed, 18 insertions, 0 deletions
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 |