From 0a10f3719a00d47396bedcef419cd4170dc7fc5f Mon Sep 17 00:00:00 2001 From: shadlaws Date: Tue, 12 Feb 2013 22:21:50 +0100 Subject: Follow-on to b01897af8deaf38d9da627b39168cb296572384f - add debugging message if Zend Guard code obfuscation is enabled to installer, too. --- installer/installer.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'installer') 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 Safe Mode. Please disable safe mode."; } + if (function_exists("zend_current_obfuscation_level") && (zend_current_obfuscation_level() >= 3)) { + $errors[] = "Gallery doesn't use Zend Guard code obfuscation, 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; } -- cgit v1.2.3