Bug #16657 [Opn->Fbk]: Net_NNTP problems with PHP 5.2.11

From: Date: Tue, 29 Sep 2009 18:22:23 +0000
Subject: Bug #16657 [Opn->Fbk]: Net_NNTP problems with PHP 5.2.11
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1766@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16657&edit=1 ID: 16657 Updated by: heino@gehlsen.dk Reported By: ddfly90 at googlemail dot com Summary: Net_NNTP problems with PHP 5.2.11 -Status: Open +Status: Feedback Type: Bug Package: Net_NNTP Operating System: FreeBSD & Windows Package Version: 1.4.0 PHP Version: 5_2 CVS-2009-09-29 Roadmap Versions: New Comment: -Status: Open +Status: Feedback Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PEAR. Hi Jim, I simply can't help you based on the provided information! Aparently the servers termination of its response is not registered... You could use the PEAR logger class to make dump of the conversation between server and client. An example on how to use it can be found in the example application (http://svn.php.net/viewvc/pear/packages/Net_NNTP/trunk/docs/examples/demo/common.inc.php?revision=261287&view=markup) provided with the Net_NNTP class. Previous Comments: ------------------------------------------------------------------------ [2009-09-29 13:03:33] ddfly Description: ------------ While a script used to work with PHP 5.2.10 and earlier versions on both FreeBSD and Windows, now no longer works with the latest version of PHP 5.2.11: Error Message: Data stream not terminated with period Tested on default PHP installations confirms that a change between 5.2.10 and 5.2.11 broke something with Net_NNTP. Haven't tested on PHP 5.3.0 yet. Test script: --------------- require_once('Net/NNTP/Client.php'); $NNTP = new Net_NNTP_Client(); $NNTP->connect('news.example.com', false, 119); $NNTP->authenticate('username', 'password'); $newsgroups = $NNTP->getGroups(); if (PEAR::isError($newsgroups)) { echo 'Fetching list of groups failed: ' . $newsgroups->getMessage(); exit; } var_dump($newsgroups); Expected result: ---------------- Array dump of $newsgroups Actual result: -------------- Fetching list of groups failed: Data stream not terminated with period ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16657&edit=1

« previous php.pear.bugs (#1766) next »