skipif.inc 280 B

1234567
  1. <?php
  2. if (!extension_loaded("curl")) exit("skip curl extension not loaded");
  3. if(false === getenv('PHP_CURL_HTTP_REMOTE_SERVER')) {
  4. if (php_sapi_name() != "cli") {
  5. die("skip PHP_CURL_HTTP_REMOTE_SERVER env variable is not defined");
  6. }
  7. }