mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFH: Add CURLOPT_TCP_NODELAY constant
This commit is contained in:
parent
66bad4f93b
commit
6a8f688af2
1
NEWS
1
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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user