Home » Networking » Net_NNTP » Bug #1712
POST( jumbles required order?
Details
| Submitted | 2004-06-24 07:39 UTC |
|---|---|
| From | 106121 dot 717 at compuserve dot com |
| Status | Bogus |
| Package | Net_NNTP |
| PHP Version | 4.3.7 |
| OS | Xp home |
| Roadmaps | (Not assigned) |
Comments
[2004-06-24 07:39 UTC] 106121 dot 717 at compuserve dot com
Description:
------------
I' was using Apaches James mail 2.1
OutLook Express could post no problems to LocalHost (Henry2 119)
NewsGroups made under James News Server.
php-4.3.4-Win32
Net_NNTP-0.10.0
Pear manual (CHM) says:
string Net_NNTP::post (string $subject, string $newsgroup, string $from, string $body [, string $additional])
The order of arguments didn't work. I manually opened the produced file under James's DIR and the headers were in a jumbled order the emial address was in the subject line.
Reproduce code:
---------------
//This order of varibles works:
$response = $nntp->post($newsgroup, $newsThread, $messageBody, $from, $addheader);
[2004-06-25 00:34 UTC] 106121 dot 717 at compuserve dot com
btw:
$newsThread below is the Subject of the post
[2004-06-25 10:04 UTC] heino at gehlsen dot dk
Net_NNTP::post() !== Net_NNTP_Realtime::post() !!!
Net_NNTP_Realtime::post() is NOT documented in the userdocs yet (only 'stable/final' methods are, due to the current alpha state), but the API docs clearly shows the correct order of the parameters.
The order of the parameters was changed to match mail() and imap_Mail()