Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.0

Request #13161 should have dumpRawAttributes()
Submitted: 2008-02-21 01:16 UTC
From: shallot Assigned: mbretter
Status: Closed Package: Auth_RADIUS (version 1.0.5)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 6 + 27 = ?

 
 [2008-02-21 01:16 UTC] shallot (Josip Rodin)
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...

Comments

 [2008-04-13 10:36 UTC] mbretter (Michael Bretterklieber)
Patches welcome ;-)
 [2008-04-13 11:49 UTC] shallot (Josip Rodin)
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"; } }
 [2015-02-10 05:35 UTC] doconnor (Daniel O'Connor)
-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.
 [2015-02-10 16:58 UTC] shallot (Josip Rodin)
Er, Daniel, I don't quite see anything to this effect at https://github.com/pear/Auth_RADIUS/blob/trunk/Auth/RADIUS.php Am I missing something?