Skip to content

Commit 8ceac81

Browse files
ekinhbayarnikic
authored andcommitted
Remove CURLOPT_PASSWDDATA block CURLOPT_PASSWDDATA was removed from curl as of 7.10.8
Closes GH-5166.
1 parent 4c9699f commit 8ceac81

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,12 +1844,7 @@ void _php_setup_easy_copy_handlers(php_curl *ch, php_curl *source)
18441844
ch->handlers->write_header->fp = source->handlers->write_header->fp;
18451845
ch->handlers->read->fp = source->handlers->read->fp;
18461846
ch->handlers->read->res = source->handlers->read->res;
1847-
#if CURLOPT_PASSWDDATA != 0
1848-
if (!Z_ISUNDEF(source->handlers->passwd)) {
1849-
ZVAL_COPY(&ch->handlers->passwd, &source->handlers->passwd);
1850-
curl_easy_setopt(source->cp, CURLOPT_PASSWDDATA, (void *) ch);
1851-
}
1852-
#endif
1847+
18531848
if (!Z_ISUNDEF(source->handlers->write->func_name)) {
18541849
ZVAL_COPY(&ch->handlers->write->func_name, &source->handlers->write->func_name);
18551850
}

0 commit comments

Comments
 (0)