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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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: Mon Nov 25 14:01:32 2024 UTC