php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55029 Example is wrong
Submitted: 2011-06-10 19:53 UTC Modified: 2011-07-01 18:38 UTC
From: dan dot franklin at pearson dot com Assigned: frozenfire (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
 [2011-06-10 19:53 UTC] dan dot franklin at pearson dot com
Description:
------------
---
From manual page: http://www.php.net/function.curl-multi-add-handle#Examples
From manual page: http://www.php.net/function.curl-multi-close#Examples
---
The example on these pages shows a spinloop waiting for curl_multi_exec to say it's done.  A junior person in our group tried to follow that example to transfer some image files and couldn't understand why it ran for an hour and did nothing.

Suggest deleting this example and linking to the one on the curl_multi_exec page, which calls curl_multi_select to pause until there's data to transfer.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-30 03:39 UTC] fa@php.net
I'm not saying you're wrong, but I cannot reproduce this on PHP 5.3.3-7+squeeze1

Both versions run in a couple of seconds, especially if I use lxr.php.net instead of example.com like in the other example.
 [2011-07-01 18:38 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2011-07-01 18:38 UTC] frozenfire@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Oct 09 01:00:01 2026 UTC