PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_NNTP » Bug #2281

group description in getGroups()

Details

Request #2281group description in getGroups()
Submitted2004-09-05 19:42 UTC
Frompaul at vanbrouwershaven dot com
StatusBogus
PackageNet_NNTP
PHP Version4.3.1
OSLinux
Roadmaps(Not assigned)

Comments

[2004-09-05 19:42 UTC] paul at vanbrouwershaven dot com

Description:
------------
It should be nice if there can some options been added in the returned array from getGroups. (numbered options can be deleted for memory)

Expected result:
----------------
With this results you can do a lot more.

Array
(
[group] => php.announce
[description] => Announcements of new PHP releases
[last] => 0000000051
[first] => 0000000001
[count] => 50
[posting] => m
)

Actual result:
--------------
Array
(
[0] => php.announce
[1] => 0000000051
[2] => 0000000001
[3] => m
[group] => php.announce
[last] => 0000000051
[first] => 0000000001
[posting] => m
)

[2004-09-06 08:19 UTC] paul at vanbrouwershaven dot com

Problem soved:

Do nu use:

require_once 'Net/NNTP/Client.php';
$nntp = new Net_NNTP_Client();

but:

require_once 'Net/NNTP.php';
$nntp = new Net_NNTP();

[2004-09-06 08:39 UTC] heino at gehlsen dot dk

That's a rather bad idea, since development of the Net_NNTP class is halted, and only serious bugs will be fixed. Do what ever you want, but this is surely a dead end!

Group descriptions are in stead fetched via getDescriptions(), since it was too much overhead retrieving a list of all group descriptions each time a list of groups was fetched.

While the group descriptions is more or less static, the list of accessible groups might be very dynamic, since the server might treat users differently...