Oh sure, I didn't mean to remove the parameters, I just meant that maybe it should check against -1. From the docs (http://us2.php.net/curl_multi_select): On failure, this function will return -1 on a select failure or timeout (from the underlying select system call).

So the check should be if (curl_multi_select($mh, 10) != -1)