diff options
author | shadlaws <shad@shadlaws.com> | 2013-02-12 22:21:50 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-02-12 22:21:50 +0100 |
commit | 0a10f3719a00d47396bedcef419cd4170dc7fc5f (patch) | |
tree | ba21400158b0ecc3391efac976d9025a54187d89 /installer/installer.php | |
parent | 4fc539651685d0c0b540c88f2a64e8ffe1f69646 (diff) |
Follow-on to b01897af8deaf38d9da627b39168cb296572384f - add debugging message if Zend Guard code obfuscation is enabled to installer, too.
Diffstat (limited to 'installer/installer.php')
-rw-r--r-- | installer/installer.php | 5 |
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; } |