Skip to content

Commit afc24da

Browse files
committed
Remove cURL close policy related constants
These options don't do anything and they never have. Refs: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCLOSEPOLICY http://curl.haxx.se/mail/lib-2006-11/0301.html
1 parent 96d0bb7 commit afc24da

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ext/curl/interface.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,6 @@ PHP_MINIT_FUNCTION(curl)
621621
REGISTER_CURL_CONSTANT(CURLOPT_BUFFERSIZE);
622622
REGISTER_CURL_CONSTANT(CURLOPT_CAINFO);
623623
REGISTER_CURL_CONSTANT(CURLOPT_CAPATH);
624-
REGISTER_CURL_CONSTANT(CURLOPT_CLOSEPOLICY);
625624
REGISTER_CURL_CONSTANT(CURLOPT_CONNECTTIMEOUT);
626625
REGISTER_CURL_CONSTANT(CURLOPT_COOKIE);
627626
REGISTER_CURL_CONSTANT(CURLOPT_COOKIEFILE);
@@ -711,13 +710,6 @@ PHP_MINIT_FUNCTION(curl)
711710
REGISTER_CURL_CONSTANT(CURLOPT_WRITEFUNCTION);
712711
REGISTER_CURL_CONSTANT(CURLOPT_WRITEHEADER);
713712

714-
/* Constants effecting the way CURLOPT_CLOSEPOLICY works */
715-
REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_CALLBACK);
716-
REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_LEAST_RECENTLY_USED);
717-
REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_LEAST_TRAFFIC);
718-
REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_OLDEST);
719-
REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_SLOWEST);
720-
721713
/* */
722714
REGISTER_CURL_CONSTANT(CURLE_ABORTED_BY_CALLBACK);
723715
REGISTER_CURL_CONSTANT(CURLE_BAD_CALLING_ORDER);
@@ -2079,7 +2071,6 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu
20792071
}
20802072
case CURLOPT_AUTOREFERER:
20812073
case CURLOPT_BUFFERSIZE:
2082-
case CURLOPT_CLOSEPOLICY:
20832074
case CURLOPT_CONNECTTIMEOUT:
20842075
case CURLOPT_COOKIESESSION:
20852076
case CURLOPT_CRLF:

0 commit comments

Comments
 (0)