Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

[2014-05-19 08:28 UTC] ghpille at hotmail dot com

When php_stream_eof is checked, after the server sent its FIN packet, it returns false when it should be true.
This is caused by stream->eof being false OR php_stream_set_option not returning PHP_STREAM_OPTION_RETURN_ERR when it should
if (!stream->eof && PHP_STREAM_OPTION_RETURN_ERR ==
php_stream_set_option(stream, PHP_STREAM_OPTION_CHECK_LIVENESS,
0, NULL)) {
stream->eof = 1;
}
return stream->eof;