Req #13161 [Csd]: should have dumpRawAttributes()
| From: | joy at entuzijast dot net | Date: | Tue, 10 Feb 2015 11:58:08 +0000 |
| Subject: | Req #13161 [Csd]: should have dumpRawAttributes() | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-11239@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=13161&edit=1
ID: 13161
Updated by: joy@entuzijast.net
Reported By: joy at entuzijast dot net
Summary: should have dumpRawAttributes()
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:
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?
Previous Comments:
------------------------------------------------------------------------
[2015-02-10 00:35:23] doconnor
-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.
------------------------------------------------------------------------
[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