Пример #1
0
 /**
  * AngryCurl constructor
  *
  * @throws AngryCurlException
  * 
  * @param string $callback Callback function name
  * @param bool $debug_log Enable/disable writing log to $debug_info var (false by default to reduce memory consumption)
  * 
  * @return void
  */
 function __construct($callback = null, $debug_log = false)
 {
     self::$debug_log = $debug_log;
     # writing debug
     self::add_debug_msg("# Building");
     # checking if cURL enabled
     if (!function_exists('curl_init')) {
         throw new AngryCurlException("(!) cURL is not enabled");
     }
     parent::__construct($callback);
 }