Skip to content

Commit 92ff33f

Browse files
committed
check curl extention
1 parent 69d0ac1 commit 92ff33f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ClickHouseAPI.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
* @copyright 2017, Ierusalim
4343
* @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
4444
*/
45+
if (!\extension_loaded("curl")) {
46+
die("Error: curl php extension missing");
47+
}
48+
4549
class ClickHouseAPI
4650
{
4751
/*

0 commit comments

Comments
 (0)