Skip to content

Commit

Permalink
curl dependency message
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrajina committed Sep 26, 2012
1 parent c5d3fa3 commit ce7c3b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oneapi/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ function __oneapi_autoloader($class) {

require_once __ONEAPI_LIBRARY_PATH__ . 'oneapi/object.php';

// Check that curl is defined:
if(!function_exists('curl_init')) {
die('php must be compiled/installed with curl support in order for OneApi client lib to work');
}

/**
* Utility handler class to store username/password.
*/
Expand Down

0 comments on commit ce7c3b3

Please sign in to comment.