MantisBT: master 4dd581f6

Author Committer Branch Timestamp Parent
dregad dregad master 2022-07-09 12:22 master 3c931792
Affected Issues  0030771: Poor error handling when $g_login_method = LDAP and PHP extension missing

Add core.php function ensure_php_extension_loaded()

Returns true if given PHP extension is loaded, dies if not.

Use the new function to replace an if statement checking for 'mbstring'.

This will avoid code duplication, as we need to introduce the same
check for 'ldap' extension to fix issue 0030771.

mod - core.php Diff File