correction for curl_multi_select()

Found curl_multi_select() problem. What is the correct?
ref. https://bugs.php.net/bug.php?id=63842
ref. https://bugs.php.net/bug.php?id=63411
ref. https://bugs.php.net/bug.php?id=61141