From f2e515d2ea372c9c21835f01ebf01aca6f9f088d Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 2 Jan 2014 22:21:13 -0800 Subject: [PATCH] Ensure ErrorExceptions are called from the global namespace --- Curl.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Curl.class.php b/Curl.class.php index 71ebafe..473893f 100644 --- a/Curl.class.php +++ b/Curl.class.php @@ -34,7 +34,7 @@ class Curl { public function __construct() { if (!extension_loaded('curl')) { - throw new ErrorException('cURL library is not loaded'); + throw new \ErrorException('cURL library is not loaded'); } $this->curl = curl_init(); @@ -61,7 +61,7 @@ class Curl { $curlm_error_code = curl_multi_add_handle($curl_multi, $curl->curl); if (!($curlm_error_code === CURLM_OK)) { - throw new ErrorException('cURL multi add handle error: ' . + throw new \ErrorException('cURL multi add handle error: ' . curl_multi_strerror($curlm_error_code)); } }