summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-14 11:43:44 -0800
committerBharat Mediratta <bharat@menalto.com>2013-02-14 11:43:44 -0800
commit004fb588c603b5ab834a942eb8252f7b6f77da6c (patch)
treef0ab8ba922f42f0fd1769fe638160a2b2e2c36a2
parent3fa08f54a6cd4741646824b8ed98c14ea2d1633f (diff)
parent0a10f3719a00d47396bedcef419cd4170dc7fc5f (diff)
Merge pull request #139 from shadlaws/followon_zend_guard_debug_message
Follow-on to b01897af8deaf38d9da627b39168cb296572384f - add debugging message
-rw-r--r--installer/installer.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/installer/installer.php b/installer/installer.php
index 4ce80ee7..2b0f1452 100644
--- a/installer/installer.php
+++ b/installer/installer.php
@@ -243,6 +243,11 @@ class installer {
$errors[] = "Gallery cannot function when PHP is in <a href=\"http://php.net/manual/en/features.safe-mode.php\">Safe Mode</a>. Please disable safe mode.";
}
+ if (function_exists("zend_current_obfuscation_level") && (zend_current_obfuscation_level() >= 3)) {
+ $errors[] = "Gallery doesn't use <a href=\"http://www.zend.com/en/products/guard\">Zend Guard code obfuscation</a>, and is incompatible if it's running " .
+ "with a level of 3 or higher. Please edit your main php.ini file and change/add the following line: 'zend_loader.obfuscation_level_support = 2'";
+ }
+
return @$errors;
}