Doc #63936 [Opn->Dup]: Possible curl_multi_exec() example issue

From: Date: Wed, 16 Jan 2013 15:05:07 +0000
Subject: Doc #63936 [Opn->Dup]: Possible curl_multi_exec() example issue
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9424@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63936&edit=1 ID: 63936 Updated by: googleguy@php.net Reported by: aharvey@php.net Summary: Possible curl_multi_exec() example issue -Status: Open +Status: Duplicate Type: Documentation Problem Package: Documentation problem Operating System: Irrelephpant PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Dup of bug #63842 Previous Comments: ------------------------------------------------------------------------ [2013-01-08 01:52:13] 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()? ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63936&edit=1

« previous php.doc.bugs (#9424) next »