Skip to content

Commit

Permalink
Show an informational message if ext/curl not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafik committed Jul 21, 2015
1 parent 96670d5 commit 263d263
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/php/cli/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@

$configFile = $cli->arguments->get('config');
$configSection = $cli->arguments->get('section');

if (!extension_loaded('curl')) {
$cli->whisper("PHP curl extension not enabled. Output from --debug may be less useful.");
}

0 comments on commit 263d263

Please sign in to comment.