George Peter Banyard
c44e9cb68b
Fix some (con|de)structor pages ( #1507 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-04-06 18:55:35 +01:00
George Peter Banyard
73fae4ee51
Fix syntax errors in examples ( #1504 )
2022-04-05 11:15:46 +01:00
Kim Hallberg
2b5457cc2d
Fix CURLFile multiple files examples ( #1446 )
2022-03-11 10:18:34 +08:00
Christophe Coevoet
a44e87c0c6
Update the min version of curl required by PHP
...
PHP 7.3 and 8.0 increased the min version of curl.
Closes GH-1221.
2021-12-21 13:10:50 +01:00
Máté Kocsis
687aef09c8
Fix the optional param of CURLStringFile::__construct() ( #1213 )
2021-12-17 13:54:58 +01:00
Yoshinari Takaoka
75c0d66b7c
fixed cross reference related to CURL[String]File class.
2021-11-30 00:27:05 +09:00
Yoshinari Takaoka
f2b05d3988
CURLFile or CURLStringFile should be used to upload a file with CURLOPT_POSTFIELDS.
2021-11-29 23:46:09 +09:00
Yoshinari Takaoka
27fd6d7147
[PHP 8.1] Document CURLStringFile ( #1154 )
...
Reviewed by Avatar Alexander Moskalev, CURLStringFile Author ( https://github.com/Irker )
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-11-29 23:27:25 +09:00
Máté Kocsis
6740a14567
Generate ext/curl class synopses from stubs ( #1112 )
2021-11-19 10:57:06 +01:00
Sergey Panteleev
81905a8633
[PHP 8.1] Add cURL constants ( #1039 )
2021-11-06 15:41:41 +03:00
Máté Kocsis
af024f4800
Fix methodsynopsis role of curl_file_create()
...
It used to be erroneously removed.
Closes GH-947.
2021-09-14 16:47:44 +02:00
Kamil Tekiela
52dc204a77
Add note about NOP code
...
Closes GH-933.
2021-09-14 15:09:52 +02:00
Máté Kocsis
7f99d5e488
Remove some unnecessary methodsynopsis role attributes ( #913 )
2021-09-14 14:37:29 +02:00
sy-records
08a941584f
Fix #91 : curl_version() no longer accepts a parameter
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-902.
2021-09-04 12:33:41 +02:00
pfofi
5a6e387a2d
Reflect new default for CURLOPT_TIMECONDITION
since cURL 7.46.0
...
* Reflect new default for `CURLOPT_TIMECONDITION` since cURL 7.46.0
In cURL 7.46.0 the default for `CURLOPT_TIMECONDITION` was changed from `CURL_TIMECOND_IFMODSINCE` to `CURL_TIMECOND_NONE`.
References:
- https://curl.se/libcurl/c/CURLOPT_TIMECONDITION.html
- https://curl.se/changes.html#7_46_0
- https://github.com/curl/curl/commit/cd2b73b3e
Closes GH-765.
2021-08-06 12:34:30 +02:00
Christoph M. Becker
59e1af19dd
Fix #77762 : CURLOPT_SSL_VERIFYHOST should mention subjectaltname
...
We also state that `1` should not be used, since it changed its
meaning: <https://curl.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html >,
and we can't be bothered to document the version dependent behavior
back to cURL 7.10.5.
2021-07-16 17:15:05 +02:00
Christoph M. Becker
f52f2a81eb
Fix #81201 : Missing description of CURLOPT_PASSWORD option
2021-06-25 18:49:14 +02:00
Sergey Panteleev
184f3f7bd4
Remove PHP 5, 7 references ( #565 )
2021-05-12 14:49:16 +03:00
Sergey Panteleev
f9c4a68ef4
Removed references to PHP 5, PHP 7.0 ( #548 )
2021-04-26 11:46:55 +03:00
Sergey Panteleev
aab33d6443
Removed references to PHP 5, PHP 7.0 ( #544 )
2021-04-23 11:35:26 +03:00
Christoph M. Becker
3b792d800d
Fix #72189 : Missing CURL_VERSION_HTTP2 from constants list
2021-03-15 19:13:06 +01:00
Christoph M. Becker
6dfe076725
xi:include INI settings documented elsewhere in ini.list
...
We do not xi:include core INI settings, since we want to keep
alphabetic sort order (well, roughly at least).
We do add xi:fallback elements to all xi:includes, just in case.
2021-02-24 17:58:20 +01:00
Ayesh Karunaratne
61f5c7a1f5
Fix CURLOPT_MAXREDIRS
/FOLLOWLOCATION
descriptions
...
Currently, the description for `CURLOPT_FOLLOWLOCATION` and `CURLOPT_MAXREDIRS` indicates that unless a `CURLOPT_MAXREDIRS` value is set, Curl will do an infinite loop.
However, this is not the case, because PHP internally sets a default value of 20. Please see:
- [`ext/curl/interface.c`](d0e3fb495f/ext/curl/interface.c (L1806)
)
- [PHP Curl Security Hardening: Infinite loops](https://php.watch/articles/php-curl-security-hardening#infinite-redirects )
- [Libcurl: CURLOPT_MAXREDIRS.html](https://curl.se/libcurl/c/CURLOPT_MAXREDIRS.html )
The default libcurl behavior is indeed to not limit the number of redirects, which enables infinite loops, but I think we probably should keep the PHP's sane default of 20, and update the documentation instead.
Closes GH-371.
2021-01-22 14:02:21 +01:00
Yoshinari Takaoka
ad7559efe7
Added PHP 8 into versions.xml for curl based on stubs.
...
Closes GH-348.
2021-01-17 15:52:30 +01:00
Christoph Michael Becker
5f8047c12b
Document new opaque classes which replace resources
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351932 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 22:11:40 +00:00
Christoph Michael Becker
e41806c30b
Revert revision(s) 351724 from phpdoc/en/trunk:
...
Document false and null return types
Cf. <https://news-web.php.net/php.doc.cvs/17645 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Jakub Vrana
c80da7c04a
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
db870c9481
curl_file_create() is not a method of CURLFile
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351642 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-25 13:30:11 +00:00
Christoph Michael Becker
21e403e4b4
Remove CURLFile::__wakeup from versions.xml
...
Cf. <http://svn.php.net/viewvc?view=revision&revision=351623 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351639 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-25 12:43:08 +00:00
Christoph Michael Becker
24a693e9a4
Fix parameter name
...
Cf. <https://github.com/php/php-src/pull/6435 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351624 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-25 01:31:30 +00:00
Christoph Michael Becker
865da51efb
Remove confusing CURLFile::__wakeup() page
...
A respective note on the class page appears to be more appropriate.
Cf. <https://github.com/php/doc-en/pull/231 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351623 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-25 01:21:44 +00:00
Christoph Michael Becker
b7f8c11e56
Generate curl methodsynopses based on stubs
...
Amended by cmb.
Closes GH-231.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351621 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-25 00:58:58 +00:00
Christoph Michael Becker
b39b2fcb92
Remove obsolete PHP 5 specific info regarding cURL file uploads
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351291 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-07 14:33:22 +00:00
Christoph Michael Becker
b95d28e6ec
Fix return types
...
Functions which return false on failure should state that in their
signature as well.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +00:00
Christoph Michael Becker
86e6094e86
Use canonical type names
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Christoph Michael Becker
dec1f8445a
Remove safe_mode related information
...
Sorry, translators, for breaking your builds again.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350871 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-13 22:07:26 +00:00
Christoph Michael Becker
9af43469f4
Remove more changelog entries, mostly from PHP 5.2 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
be5b0f33a1
Remove more changelog entries, mostly from PHP 5.1 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350653 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:45:57 +00:00
Christoph Michael Becker
53bdffa6b9
Removed some of the PHP5 changelogs
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350645 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:32:19 +00:00
Christoph Michael Becker
e020f80412
fix ugly bug in sample code
...
imagine if 2 handles finish in the same multi_exec(), before exec() $active is 2 and after the call $active is 0, then we read the first message, and the the message from the 2nd handle will be lost/ignored!
this has caused real bugs in the wild, see https://stackoverflow.com/questions/61920359/count-how-many-curl-multi-requests-have-been-made/61923372
Patch provided by divinity76.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349952 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-21 09:35:34 +00:00
Christoph Michael Becker
aebf045bfb
Fix miscellaneous typos
...
Detected by codespell
Patch provided by tandre@php.net .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349708 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-27 06:43:55 +00:00
Christoph Michael Becker
67e6fdb205
Document missing CURLOPT_HTTP_VERSION values
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349505 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-20 15:10:04 +00:00
Christoph Michael Becker
d3c48b9ae3
Properly mark up constants as such
...
While these constants are supposed to be passed as argument, they are not
parameters per se. Furthermore, parameters are linked to their declaration
in the PHP rendered version at least, and since there is no declaration,
the links are most useless.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349504 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-20 15:07:42 +00:00
Christoph Michael Becker
7cca6df586
Add initializers for procedural APIs
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349453 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-15 09:21:15 +00:00
Sherif Ramadan
f12adb7d02
Fix broken build
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349411 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-13 18:32:58 +00:00
Sherif Ramadan
c136f24535
Fix bug #79378 - Uploading multiple files with CURLFile is not documented
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349410 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-13 18:21:35 +00:00
Christoph Michael Becker
916268236f
Document CURLOPT_COOKIELIST on constants page as well
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349397 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-12 17:20:13 +00:00
Christoph Michael Becker
12bae73457
Fix #72611 : CURLOPT_TCP_KEEPALIVE missing
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349396 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-12 17:08:49 +00:00
Christoph Michael Becker
39ed941a15
Fix #77792 : CURLOPT_SSLCERTTYPE support P12(pfx) certificate
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349395 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-12 16:12:54 +00:00
Christoph Michael Becker
a8356baaf4
Fix #78367 : missing CURL_SSLVERSION_MAX_xxx
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349394 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-12 16:07:42 +00:00