php-doc-en/reference/curl
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
..
curlfile Add initializers for procedural APIs 2020-03-15 09:21:15 +00:00
functions fix ugly bug in sample code 2020-05-21 09:35:34 +00:00
book.xml Another round of PHP 4 content removal (mostly inline mentions) 2016-12-05 10:17:07 +00:00
configure.xml Remove PHP 4 related info 2019-03-01 18:32:27 +00:00
constants.xml Document CURLOPT_COOKIELIST on constants page as well 2020-03-12 17:20:13 +00:00
curlfile.xml Document CURLFile property types and constructor defaults 2020-03-12 08:55:43 +00:00
examples.xml add a check for curl_error and write error to file 2019-12-04 10:44:47 +00:00
ini.xml Revert useless change in 326638 2012-02-29 00:24:15 +00:00
reference.xml Converted to utf-8 2010-03-28 22:10:10 +00:00
setup.xml Update the curl requirements, in the true spirit of not caring at all about PHP 4. 2014-03-11 19:10:47 +00:00
versions.xml Log: Partially fix #75094: Functions not documented 2017-08-22 15:07:32 +00:00