From: Sara Golemon Date: Mon, 8 Jan 2007 20:04:56 +0000 (+0000) Subject: Add CURLOPT_TCP_NODELAY X-Git-Tag: RELEASE_1_0_0RC1~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea81a3a7b7b7b6b6d6482e34739f2939e69b3b61;p=php Add CURLOPT_TCP_NODELAY --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index a35446faaa..15c85a3c3e 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -450,6 +450,7 @@ PHP_MINIT_FUNCTION(curl) REGISTER_CURL_CONSTANT(CURLOPT_PROXYPORT); REGISTER_CURL_CONSTANT(CURLOPT_UNRESTRICTED_AUTH); REGISTER_CURL_CONSTANT(CURLOPT_FTP_USE_EPRT); + REGISTER_CURL_CONSTANT(CURLOPT_TCP_NODELAY); REGISTER_CURL_CONSTANT(CURLOPT_HTTP200ALIASES); REGISTER_CURL_CONSTANT(CURL_TIMECOND_IFMODSINCE); REGISTER_CURL_CONSTANT(CURL_TIMECOND_IFUNMODSINCE); @@ -1268,6 +1269,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu case CURLOPT_PORT: case CURLOPT_AUTOREFERER: case CURLOPT_COOKIESESSION: + case CURLOPT_TCP_NODELAY: convert_to_long_ex(zvalue); error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue)); break;