Commit bde7dcddf81cb1a04ed2d57a7a73d20f7e16013a

Authored by Neil Blakey-Milner
1 parent 03f61b81

According to PEAR.php, enable_dl being disabled or safe_mode being

enabled will make extension loading a fatal error, which would not be a
good thing for us.  Simply return false if the above scenario is
fulfilled.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3259 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 7 additions and 0 deletions
setup/precheckup.php
... ... @@ -130,6 +130,13 @@ function haveExtension($ext) {
130 130 if (extension_loaded($ext)) {
131 131 return true;
132 132 }
  133 +
  134 + // According to PEAR.php:
  135 + // if either returns true dl() will produce a FATAL error, stop that
  136 + if ((ini_get('enable_dl') != 1) || (ini_get('safe_mode') == 1)) {
  137 + return false;
  138 + }
  139 +
133 140 $libfileext = '.so';
134 141 $libraryprefix = '';
135 142 if (substr(PHP_OS, 0, 3) == "WIN") {
... ...