[PEAR-BUG] Req #13161 [Asn->Csd]: should have dumpRawAttributes()

[email protected] Tue, 10 Feb 2015 00:35:23 +0000 (GMT)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=13161&edit=1

 ID:               13161
 Updated by:       [email protected]
 Reported By:      joy at entuzijast dot net
 Summary:          should have dumpRawAttributes()
-Status:           Assigned
+Status:           Closed
 Type:             Feature/Change Request
 Package:          Auth_RADIUS
 Operating System: Linux
 Package Version:  1.0.5
 PHP Version:      Irrelevant
 Assigned To:      mbretter
 Roadmap Versions: 
 New Comment:

-Status: Assigned
+Status: Closed
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




Previous Comments:
------------------------------------------------------------------------

[2008-04-13 07:49:24] shallot

Well, the first part is pretty easy :)

    /**
     * Prints all attributes received from the server
     * (even the unknown ones).
     *
     * @access public
     */
    function dumpRawAttributes()
    {  
        foreach ($this->rawAttributes as $name => $data) {
            echo "$name:$data<br>\n";                  
        }
    }

------------------------------------------------------------------------

[2008-04-13 06:36:40] mbretter

Patches welcome ;-)

------------------------------------------------------------------------

[2008-02-20 20:16:11] shallot

Description:
------------
There is a method dumpAttributes() which prints the known attributes
received from the server, but getAttributes() recognizes only a small
set, and stores the rest in $rawAttributes. However, there isn't a
method to print those, so it would make sense to add one.

It would be useful to have a method which converts numbers into constant
names, based on radius/radius_init_const.h, although it would have to be
a bit tricky in order to distinguish e.g. RADIUS_ACCESS_REQUEST from a
RADIUS_USER_NAME, both of which have the same number...

------------------------------------------------------------------------


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