note 110923 added to function.curl-multi-exec

From: Date: Mon, 24 Dec 2012 06:44:34 +0000
Subject: note 110923 added to function.curl-multi-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-192660@lists.php.net to get a copy of this message
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()? ---- Server IP: 69.147.83.199 Probable Submitter: 124.190.51.241 ---- Manual Page -- http://php.net/manual/en/function.curl-multi-exec.php Edit -- https://master.php.net/note/edit/110923 Del: integrated -- https://master.php.net/note/delete/110923/integrated Del: useless -- https://master.php.net/note/delete/110923/useless Del: bad code -- https://master.php.net/note/delete/110923/bad+code Del: spam -- https://master.php.net/note/delete/110923/spam Del: non-english -- https://master.php.net/note/delete/110923/non-english Del: in docs -- https://master.php.net/note/delete/110923/in+docs Del: other reasons-- https://master.php.net/note/delete/110923 Reject -- https://master.php.net/note/reject/110923 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192660) next »