From bde7dcddf81cb1a04ed2d57a7a73d20f7e16013a Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 10 May 2005 11:58:09 +0000 Subject: [PATCH] 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. --- setup/precheckup.php | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/setup/precheckup.php b/setup/precheckup.php index 38adfdc..5ac0d8d 100644 --- a/setup/precheckup.php +++ b/setup/precheckup.php @@ -130,6 +130,13 @@ function haveExtension($ext) { if (extension_loaded($ext)) { return true; } + + // According to PEAR.php: + // if either returns true dl() will produce a FATAL error, stop that + if ((ini_get('enable_dl') != 1) || (ini_get('safe_mode') == 1)) { + return false; + } + $libfileext = '.so'; $libraryprefix = ''; if (substr(PHP_OS, 0, 3) == "WIN") { -- libgit2 0.21.4