summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-08-20 00:55:56 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-08-20 00:55:56 +0000
commit67e3288a5da19cc4b8006ab7ea0c7c930a60d03d (patch)
tree94a48569c6725ee5738752d1add456745a6d762f /ext/curl
parent9b09af54d99d4101b6eeba2e475863aae9745b52 (diff)
downloadphp-git-67e3288a5da19cc4b8006ab7ea0c7c930a60d03d.tar.gz
Added more missing cURL options.
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/interface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 907d628c13..14c2c0a369 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -220,6 +220,9 @@ PHP_MINIT_FUNCTION(curl)
REGISTER_CURL_CONSTANT(CURLOPT_UNRESTRICTED_AUTH);
REGISTER_CURL_CONSTANT(CURLOPT_FTP_USE_EPRT);
REGISTER_CURL_CONSTANT(CURLOPT_HTTP200ALIASES);
+ REGISTER_CURL_CONSTANT(CURL_TIMECOND_IFMODSINCE);
+ REGISTER_CURL_CONSTANT(CURL_TIMECOND_IFUNMODSINCE);
+ REGISTER_CURL_CONSTANT(CURL_TIMECOND_LASTMOD);
#if LIBCURL_VERSION_NUM > 0x070a05 /* CURLOPT_HTTPAUTH is available since curl 7.10.6 */
REGISTER_CURL_CONSTANT(CURLOPT_HTTPAUTH);
@@ -922,6 +925,9 @@ PHP_FUNCTION(curl_setopt)
#endif
case CURLOPT_UNRESTRICTED_AUTH:
case CURLOPT_PORT:
+ case CURL_TIMECOND_IFMODSINCE:
+ case CURL_TIMECOND_IFUNMODSINCE:
+ case CURL_TIMECOND_LASTMOD:
convert_to_long_ex(zvalue);
error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue));
break;