]> granicus.if.org Git - php/commitdiff
Add CURLOPT_TCP_NODELAY
authorSara Golemon <pollita@php.net>
Mon, 8 Jan 2007 20:04:56 +0000 (20:04 +0000)
committerSara Golemon <pollita@php.net>
Mon, 8 Jan 2007 20:04:56 +0000 (20:04 +0000)
ext/curl/interface.c

index a35446faaa52278988fccd227481083619147e85..15c85a3c3ee4c96beb1dfd58104e934fc32e9d6f 100644 (file)
@@ -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;