php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63936 Possible curl_multi_exec() example issue
Submitted: 2013-01-08 01:52 UTC Modified: 2013-01-16 15:05 UTC
From: aharvey@php.net Assigned:
Status: Duplicate Package: Documentation problem
PHP Version: Irrelevant OS: Irrelephpant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: aharvey@php.net
New email:
PHP Version: OS:

 

 [2013-01-08 01:52 UTC] aharvey@php.net
Description:
------------
From user note 110923:

I think there's a bug in the sample code.

If curl_multi_select() returns -1, the do..while loop just keeps calling it until it returns something else.

So if repeated calles to curl_multi_select() can return -1 indefinitely (and the comments on the manual page for that function suggest it can), then the example code will just go into an infinite loop.

I'd post a fixed version, but I'm not sure what a return value of -1 actually implies:  Does it mean the entire multi-stack has failed somehow, or can we continue calling curl_mulit_exec()?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-16 15:05 UTC] googleguy@php.net
Dup of bug #63842
 [2013-01-16 15:05 UTC] googleguy@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 06:01:30 2024 UTC