summaryrefslogtreecommitdiff
path: root/ext/curl
Commit message (Collapse)AuthorAgeFilesLines
* Improve resource management for curl handlePierrick Charron2013-01-053-19/+6
| | | | | | Previous implementation was using its own refcounting (uses field of the php_curl struct). zend_list_add/remove already implements its own refcount, so we don't need to use an other one.
* Remove passwd handler from struct when not neededPierrick Charron2013-01-012-0/+4
| | | | | CURLOPT_PASSWDFUNCTION was removed in cURL 7.15.5, the passwd field will not be used for version greater than this one
* Happy New YearXinchen Hui2013-01-015-5/+5
|
* Add new curl optionsPierrick Charron2012-12-281-0/+30
| | | | | | Addes new curl options CURLOPT_TELNETOPTIONS, CURLOPT_GSSAPI_DELEGATION, CURLOPT_ACCEPTTIMEOUT_MS, CURLOPT_SSL_OPTIONS, CURLOPT_TCP_KEEPALIVE, CURLOPT_TCP_KEEPIDLE and CURLOPT_TCP_KEEPINTVL.
* Merge branch 'PHP-5.4' into PHP-5.5Pierrick Charron2012-12-271-0/+3
|\ | | | | | | | | * PHP-5.4: Fixed #63859 Memory leak when reusing curl-handle
| * Fixed #63859 Memory leak when reusing curl-handlePierrick Charron2012-12-271-0/+3
| | | | | | | | | | | | | | | | | | When CURLOPT_POSTFIELDS is called more than once on the same curl handle, php/curl did not free the memory of the previous post data. This commit will fix the problem unless the curl handle was previously duplicated using the curl_copy_handle() function in which case we can not know if the post data is still in use or not by any curl handle
* | Fix ext/curl tests to work on every libcurl versionsPierrick Charron2012-12-264-10/+18
| | | | | | | | Thanks Laruence :)
* | New curl_pause() functionPierrick Charron2012-12-232-0/+43
| | | | | | | | | | | | | | Add the curl_pause function (binding of curl_easy_pause). Using this function, you can explicitly mark a running connection to get paused, and you can unpause a connection that was previously paused.
* | Support for curl_strerror and curl_multi_strerrorPierrick Charron2012-12-235-2/+106
| | | | | | | | | | | | Add the support for both curl_strerror and curl_multi_strerror. Those function will return a string describing the error code passed in the argument errornum
* | Add curl_multi_setopt and clean curl_share_setoptPierrick Charron2012-12-236-6/+120
| | | | | | | | | | curl_multi_setopt is now available and supports CURLMOPT_PIPELINING and CURLMOPT_MAXCONNECTS
* | Remove duplicated function definitionPierrick Charron2012-12-231-20/+14
| |
* | Merge branch 'PHP-5.4' into PHP-5.5Pierrick Charron2012-12-222-0/+80
|\ \ | |/ | | | | | | | | * PHP-5.4: Update NEWS file Fixed segfault due to libcurl connection caching
| * Merge branch 'PHP-5.3' into PHP-5.4Pierrick Charron2012-12-222-0/+80
| |\ | | | | | | | | | | | | * PHP-5.3: Fixed segfault due to libcurl connection caching
| | * Fixed segfault due to libcurl connection cachingPierrick Charron2012-12-222-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Libcurl is doing connection caching. When easy handle is cleaned up, if the handle was previously used by the curl_multi_api, the connection remains open un the curl multi handle is cleaned up. Some protocols are sending content like the FTP one, and libcurl try to use the WRITEFUNCTION or the HEADERFUNCTION. Since structures used in those callback are freed, we need to use an other callback to which avoid segfaults. Libcurl commit d021f2e8a00 fix this issue and should be part of 7.28.2
* | | Merge branch 'PHP-5.4' into PHP-5.5Pierrick Charron2012-12-214-8/+48
|\ \ \ | |/ / | | | | | | | | | | | | | | | * PHP-5.4: Update NEWS file Fixed bug #63352 (Can't enable hostname validation when using curl stream wrappers) CURL >= 7.28.0 no longer support value 1 for CURLOPT_SSL_VERIFYHOST)
| * | Merge branch 'PHP-5.3' into PHP-5.4Pierrick Charron2012-12-214-8/+48
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.3: Update NEWS file Fixed bug #63352 (Can't enable hostname validation when using curl stream wrappers) CURL >= 7.28.0 no longer support value 1 for CURLOPT_SSL_VERIFYHOST) Conflicts: ext/curl/interface.c ext/curl/tests/bug63363.phpt
| | * Fixed bug #63352 (Can't enable hostname validation when using curl stream ↵Pierrick Charron2012-12-211-2/+2
| | | | | | | | | | | | wrappers)
| | * CURL >= 7.28.0 no longer support value 1 for CURLOPT_SSL_VERIFYHOST)Pierrick Charron2012-12-213-1/+78
| | | | | | | | | | | | Fixed bug #63795
* | | Merge branch 'PHP-5.4' into PHP-5.5Pierrick Charron2012-12-211-0/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: Fix test
| * | Fix testPierrick Charron2012-12-211-0/+5
| | | | | | | | | | | | | | | This test is only valid if libcurl < 7.28.1 since libcurl removed support for the 1 value in CURLOPT_SSL_VERIFYHOST.
* | | Merge branch 'PHP-5.4' into PHP-5.5Pierrick Charron2012-12-192-13/+10
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: Fixed bug #55438 (Curlwapper is not sending http header randomly)
| * | Merge branch 'PHP-5.3' into PHP-5.4Pierrick Charron2012-12-192-13/+10
| |\ \ | | |/ | | | | | | | | | * PHP-5.3: Fixed bug #55438 (Curlwapper is not sending http header randomly)
| | * Fixed bug #55438 (Curlwapper is not sending http header randomly)Pierrick Charron2012-12-192-13/+10
| | | | | | | | | | | | | | | | | | Since curl multi is used, it sometime happen that the resource is freed before the curl multi really execute the query. The patch will store the headers slist in the curlstream handle and free it only when the stream will be closed
* | | Merge branch 'PHP-5.4' into PHP-5.5Xinchen Hui2012-11-211-4/+0
|\ \ \ | |/ /
| * | Unused variable copystrXinchen Hui2012-11-211-4/+0
| | | | | | | | | | | | copystr is declared again blow
| * | Notice if CURLOPT_SSL_VERIFYHOST is set to trueJohn Jawed (JJ)2012-10-252-1/+34
| | |
* | | Notice if CURLOPT_SSL_VERIFYHOST is set to trueJohn Jawed (JJ)2012-10-252-1/+33
| | |
* | | Merge branch 'PHP-5.4'Xinchen Hui2012-10-103-0/+0
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-10-103-0/+0
| |\ \ | | |/
| | * Remove executable permission on phptXinchen Hui2012-10-103-0/+0
| | |
* | | Merge branch 'PHP-5.4'Pierrick Charron2012-09-281-0/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: FD_ZERO file descriptors before calling curl_multi_fdset
| * | Merge branch 'PHP-5.3' into PHP-5.4Pierrick Charron2012-09-281-0/+4
| |\ \ | | |/ | | | | | | | | | * PHP-5.3: FD_ZERO file descriptors before calling curl_multi_fdset
| | * FD_ZERO file descriptors before calling curl_multi_fdsetPierrick Charron2012-09-281-0/+4
| | | | | | | | | | | | | | | As per curl documentation http://curl.haxx.se/libcurl/c/curl_multi_fdset.html we need to FD_ZERO file descriptors before calling the curl_multi_fdset function
* | | Merge branch 'PHP-5.4'Pierrick Charron2012-09-221-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-5.4: Avoid calling select if maxfd returned by curl_multi_fdset is -1 Fixing NEWS file
| * | Merge branch 'PHP-5.3' into PHP-5.4Pierrick Charron2012-09-221-0/+3
| |\ \ | | |/ | | | | | | | | | * PHP-5.3: Avoid calling select if maxfd returned by curl_multi_fdset is -1
| | * Avoid calling select if maxfd returned by curl_multi_fdset is -1Pierrick Charron2012-09-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | As per libcurl documentation : When libcurl returns -1 in max_fd, it is because libcurl currently does something that isn't possible for your application to monitor with a socket and unfortunately you can then not know exactly when the current action is completed using select().
* | | Add CURLOPT_READDATA which was removed by mistakePierrick Charron2012-09-221-0/+1
| | | | | | | | | | | | | | | I did a check and this is the only one which was removed by mistake. No other constants are available in 5.4 branch and not in master
* | | Merge branch 'PHP-5.4'Xinchen Hui2012-09-181-1/+1
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-09-181-1/+1
| |\ \ | | |/
| | * Fixed Bug #63103 (ext\curl\tests\bug62839.phpt broken)Xinchen Hui2012-09-181-1/+1
| | |
| * | Fixed bug #62912 (CURLINFO_PRIMARY_IP is not exposed)Pierrick Charron2012-08-241-3/+13
| | | | | | | | | | | | | | | CURLINFO_PRIMARY_* and CURLINFO_LOCAL_* where available in curl_getinfo but the constant itself was not exposed to php userland
* | | - Fixed compiler warningsFelipe Pena2012-08-271-4/+4
| | |
* | | Fix bad version for CURLINFO_CERTINFOPierrick Charron2012-08-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | CURLINFO_CERTINFO is available since 7.19.1. The cURL extension allow to use it since this same version but the internal function create_certinfo used internally for CURLINFO_CERTINFO usage is only usable for version greater than 7.19.1 which will cause problem if the user is using the 7.19.1 cURL version
* | | Add missing constants in cURLPierrick Charron2012-08-251-1/+4
| | |
* | | Update bad versions for cURL constantsPierrick Charron2012-08-241-13/+20
| | | | | | | | | | | | | | | This was updated according to the cURL symbol tables located here : http://curl.haxx.se/libcurl/c/symbols-in-versions.html
* | | Merge branch 'PHP-5.4'Pierrick Charron2012-08-162-2/+20
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: Fixed bug #62839
| * | Merge branch 'PHP-5.3' into PHP-5.4Pierrick Charron2012-08-162-2/+20
| |\ \ | | |/ | | | | | | | | | * PHP-5.3: Fixed bug #62839
| | * Fixed bug #62839Pierrick Charron2012-08-162-2/+20
| | | | | | | | | | | | | | | curl_copy_handle segfault with CURLOPT_FILE. The refcount was incremented before the assignement.
* | | Fix curl_basic_022.phptNikita Popov2012-08-161-4/+4
| | | | | | | | | | | | | | | | | | Some curl versions seem to have issues handling dates beyond Thu, 31-Dec-2037 23:59:59 GMT (dates after this are just clamped to MAX_INT).
* | | Fixed bug #62615 (test ext/curl/tests/curl_escape.phpt failed).Pierrick Charron2012-07-261-0/+0
| | | | | | | | | | | | | | | curl_easy_escape was modified in 5.21.2 to not escape "unreserved" characters so this test will fail on version older than 5.21.2