xref: /PHP-7.4/ext/curl/tests/skipif.inc (revision b75867ff)
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    }
8