Auth package bugs
| From: | Denis Gerasimov | Date: | Thu, 07 Oct 2004 08:22:18 +0000 |
| Subject: | Auth package bugs | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14784@lists.php.net to get a copy of this message | ||
Hello all,
I didn't see any reaction on my previous message so let me try again.
I noticed some problems with PEAR Auth package. Here they are:
1. (See my email below). I still don't see any reaction. But that is
obviously a bug.
2. I found a very troublesome problem with installation of Auth package on
old PHP (4.3.3). (Newer PHP versions haven't this problem.) PEAR installer
fails because of the file named .tmpusers (it has zero length - is this file
really needed?).
When I unzip the archive, add some characters to this file, delete
appropriate md5 attribute in package XML and zip all this back -
installation goes fine.
What is working wrong: old PHP, PEAR installer, or that is a problem of Auth
package?
Best regards, Denis Gerasimov
Outsourcing Services Manager,
VEKOS, Ltd.
www.vekos.ru
> -----Original Message-----
> From: Denis Gerasimov [mailto:denis.gerasimov@vekos.ru]
> Sent: Wednesday, September 29, 2004 12:27 PM
> To: PEAR General ML (pear-general@lists.php.net)
> Subject: Auth package bug or documentation issue?
>
>
> Hello all,
>
> I got a very strange behavior of getAuthData() method of Auth class.
>
> I tried to follow the example given here:
>
> http://pear.php.net/manual/en/package.authentication.auth-http.auth-
> http.example2.php but any kind of calls like $objAuth->getAuthData() or
> $objAuth->getAuthData('id') etc. returned no result (null value or empty
> array).
>
> Then I dug a little in the sources and found that there is an error in the
> example code, the line
>
> 'dbFields'=>"*", // enabling fetch for other db columns
>
> have to be
>
> 'db_fields' => '*' // enabling fetch for other db columns
>
> I changed this line but this didn't help me at all.
> After some time spent I tried to insert this call before getAuthData():
>
> $objAuth->storage->fetchData($objAuth->username, $objAuth->password);
>
> and that resolved the problem. I am really not sure that this is the right
> way; please, anybody explain me what goes on.
>
> My configuration:
> OS: Windows 2000 Professional SP4
> Web server: Apache 2.0.50
> PHP: PHP 5.0.1
> Auth, Auth_HTTP, DB etc.: latest versions
>
> Best regards, Denis Gerasimov
> Outsourcing Services Manager,
> VEKOS, Ltd.
> www.vekos.ru
>