note 110923 deleted from function.curl-multi-exec by aharvey

From: Date: Tue, 08 Jan 2013 01:52:25 +0000
Subject: note 110923 deleted from function.curl-multi-exec by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192786@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- 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()?

« previous php.notes (#192786) next »