-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop handling for PHP_CURL_HTTP_REMOVE_SERVER
Historically it was necessary to use a separate server to test curl against. For many years now we use the builtin server instead. I don't believe there's much point in retaining this functionality.
- Loading branch information
Showing
2 changed files
with
1 addition
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
<?php | ||
if (!extension_loaded("curl")) exit("skip curl extension not loaded"); | ||
if(false === getenv('PHP_CURL_HTTP_REMOTE_SERVER')) { | ||
if (php_sapi_name() != "cli") { | ||
die("skip PHP_CURL_HTTP_REMOTE_SERVER env variable is not defined"); | ||
} | ||
} | ||
if (!extension_loaded("curl")) exit("skip curl extension not loaded"); |