Edit report at https://pear.php.net/bugs/bug.php?id=16657&edit=1

ID: 16657
Updated by: [email protected]
Reported By: ddfly90 at googlemail dot com
Summary: Net_NNTP problems with PHP 5.2.11
Status: Bogus
Type: Bug
Package: Net_NNTP
Operating System: FreeBSD & Windows
Package Version: 1.4.0
PHP Version: 5.2.11
Assigned To: ddfly
Roadmap Versions:
New Comment:


Change line 72 from:
if (version_compare(PHP_VERSION, '5.2.11') === 1) {

if (version_compare(PHP_VERSION, '5.2.11') === 0) {

Previous Comments:

[2009-10-04 11:45:44] heino

-Status: Closed
+Status: Bogus
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PEAR.

Added E_USER_WARNING about PHP version 5.2.11 and changed error message
to reflect actual situation...


[2009-09-30 19:58:52] ddfly

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ddfly


[2009-09-30 10:06:54] ddfly


According to above, feof() is bad in 5.2.11 which is what Net_Socket
uses on line 431 for eof()


[2009-09-30 08:19:06] ddfly

while (true)

That seems to have fixed the problem. Tested it many times and it
fetched all 107k newsgroups fine, reverting it back saw the problem

Changing the socket timeout had no effect.


[2009-09-29 23:12:43] heino

If you are sure the server actually rthe terminating peiod, my guess
would be that you might be thrown out of the while loop in the
_getTextResponse() method because of no more data available. It’s only
a desperate thought however…

Could you please try to make an eternal loop at
NNTP/Protocol/Client.php line 321?
while(!$this->_socket->eof()) {
while (true) {

You could also try to increase the socket timeout:
$nntp->_socket->setTimeout($seconds, $microseconds);


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedJan 15, '12 at 9:44p
activeJan 15, '12 at 9:44p

1 user in discussion

Heino Gehlsen+php: 1 post



site design / logo © 2023 Grokbase