summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-23 16:44:25 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-23 16:44:25 +0000
commitc2a57645536f71cc206d658484359d477b454677 (patch)
tree9f0cb5b992d4bfa74a76b9428a1d8feb47cfa66e /lib
parentd4b700e2fe1eeb47fbea7b61c295eba16f30c41c (diff)
downloadampache-c2a57645536f71cc206d658484359d477b454677.tar.gz
ampache-c2a57645536f71cc206d658484359d477b454677.tar.bz2
ampache-c2a57645536f71cc206d658484359d477b454677.zip
updated test.php
Diffstat (limited to 'lib')
-rw-r--r--lib/debug.php18
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