We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b4a3a commit a12839cCopy full SHA for a12839c
src/Elasticsearch/Client.php
@@ -81,9 +81,14 @@ class Client
81
* Client constructor
82
*
83
* @param array $params Array of injectable parameters
84
+ * @throws Common\Exceptions\RuntimeException
85
*/
86
public function __construct($params = array())
87
{
88
+ if (!extension_loaded('curl') || !function_exists('curl_multi_exec')) {
89
+ throw new Exceptions\RuntimeException("curl_multi_exec() function is required for the client.");
90
+ }
91
+
92
$this->setParams($params);
93
$this->setLogging();
94
$this->transport = $this->params['transport'];
0 commit comments