From bb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e Mon Sep 17 00:00:00 2001 From: momo-i Date: Fri, 30 Jul 2010 00:11:07 +0000 Subject: Check cURL before install. if cURL have not installed, get_like() should be return false. --- lib/debug.lib.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/debug.lib.php') diff --git a/lib/debug.lib.php b/lib/debug.lib.php index 4464447e..e49cb065 100644 --- a/lib/debug.lib.php +++ b/lib/debug.lib.php @@ -156,6 +156,21 @@ function check_php_pcre() { } // check_php_pcre +/** + * check_php_curl + * This makes sure they have cURL (curl_???) support + * compiled into PHP this is optional + */ +function check_php_curl() { + + if (!extension_loaded('curl')) { + return false; + } + + return true; + +} // check_php_curl + /** * check_config_values * checks to make sure that they have at least set the needed variables -- cgit