From 6a8f688af222dcd4c64556da96d43904aa82af79 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 9 Jan 2007 23:13:05 +0000 Subject: [PATCH] MFH: Add CURLOPT_TCP_NODELAY constant --- NEWS | 1 + ext/curl/interface.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 2a7f992e19a..d94e3feeb60 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Jan 2007, PHP 5.2.1RC3 +- Added CURLOPT_TCP_NODELAY constant to Curl extension. (Sara) - Improved proc_open(). Now on Windows it can run external commands not through CMD.EXE. (Dmitry) - Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 2c4f746f6a0..9acccad7d94 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -452,6 +452,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); @@ -1263,6 +1264,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;