go to bug id or search bugs for
1682 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ?
1683 (POLLIN|POLLPRI) : POLLOUT, has_timeout ? &left_time : NULL);
But this result is never checked.
Everywhere else php_pollfd_for is used, the return result is checked. And it should be here too.
Add a Patch
Add a Pull Request
In this case the return value from php_pollfd_for has no bearing on the remainder of the operation. It simply tells us whether or not there is readable data available on the the underlying socket descriptor. This isn't really a bug ... but yes ... we can make the code more efficient by checking the return value and avoiding another trip around the loop (I'm looking at the current master branch -- not the version from 2015-01-03).
Thanks for the report. I'll clean this up sooner rather than later and report back.