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
 [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: Thu Apr 25 23:01:29 2024 UTC