summaryrefslogtreecommitdiff
path: root/ext/curl/php_curl.h
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2013-01-01 21:12:02 -0500
committerPierrick Charron <pierrick@php.net>2013-01-01 21:12:02 -0500
commit343a9199bbbf4f63b02099ceef27ef9881d8aa9f (patch)
treee133bf1fb897b49b946ec29bf77551603e037b39 /ext/curl/php_curl.h
parenta666285bc2488b7f7362368c388e41428610ad1d (diff)
downloadphp-git-343a9199bbbf4f63b02099ceef27ef9881d8aa9f.tar.gz
Remove passwd handler from struct when not needed
CURLOPT_PASSWDFUNCTION was removed in cURL 7.15.5, the passwd field will not be used for version greater than this one
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r--ext/curl/php_curl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h
index 3ae7060288..5c24fc1302 100644
--- a/ext/curl/php_curl.h
+++ b/ext/curl/php_curl.h
@@ -135,7 +135,9 @@ typedef struct {
php_curl_write *write;
php_curl_write *write_header;
php_curl_read *read;
+#if CURLOPT_PASSWDFUNCTION != 0
zval *passwd;
+#endif
zval *std_err;
php_curl_progress *progress;
#if LIBCURL_VERSION_NUM >= 0x071500 /* Available since 7.21.0 */