summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-05-18 19:49:25 -0600
committerChad Parry <github@chad.parry.org>2011-05-18 19:49:25 -0600
commitf0bfd1fef0b6d17da9a491f7c724ae53491926a2 (patch)
treee41cb18c39b462c2ad071240e97ad2bde10693e0 /installer
parent72f3fc46f6c7c9043e730063051ecfd88bf314c8 (diff)
parentdb734130c5fe10408040b2326b28b102f3131271 (diff)
Merge branch 'master' of https://github.com/gallery/gallery3 into rawphoto
Conflicts: modules/gallery/helpers/system.php modules/gallery/tests/System_Helper_Test.php
Diffstat (limited to 'installer')
-rw-r--r--installer/installer.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/installer/installer.php b/installer/installer.php
index c23d918f..0bef57ae 100644
--- a/installer/installer.php
+++ b/installer/installer.php
@@ -191,8 +191,10 @@ class installer {
$errors[] = "Gallery 3 requires a MySQL database, but PHP doesn't have either the <a href=\"http://php.net/mysql\">MySQL</a> or the <a href=\"http://php.net/mysqli\">MySQLi</a> extension.";
}
- if (!@preg_match("/^.$/u", utf8_encode("\xF1"))) {
- $errors[] = "PHP is missing <a href=\"http://php.net/pcre\">Perl-Compatible Regular Expression</a> support.";
+ if (!preg_match("/^.$/u", "ñ")) {
+ $errors[] = "PHP is missing <a href=\"http://php.net/pcre\">Perl-Compatible Regular Expression</a> with UTF-8 support.";
+ } else if (!preg_match("/^\pL$/u", "ñ")) {
+ $errors[] = "PHP is missing <a href=\"http://php.net/pcre\">Perl-Compatible Regular Expression</a> with Unicode support.";
}
if (!(function_exists("spl_autoload_register"))) {
@@ -211,6 +213,10 @@ class installer {
$errors[] = "PHP is missing the <a href=\"http://php.net/iconv\">iconv extension</a>";
}
+ if (!(extension_loaded("xml"))) {
+ $errors[] = "PHP is missing the <a href=\"http://php.net/xml\">XML Parser extension</a>";
+ }
+
if (!(extension_loaded("simplexml"))) {
$errors[] = "PHP is missing the <a href=\"http://php.net/simplexml\">SimpleXML extension</a>";
}