Re: found the solution on File_Password notice error

From: Date: Wed, 30 Jul 2003 01:12:33 +0000
Subject: Re: found the solution on File_Password notice error
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18917@lists.php.net to get a copy of this message
This is fixed in CVS (5 months ago) - can you file a bug to say that it needs re-releasing.. Regards Alan Laurent Laville wrote:
Hi all,
And i've found a possible problem with File_Password package in 0.9.0
beta
version at line 106 Notice: Undefined offset: 2 in E:\EasyPHP\php\PEAR\File\Passwd.php on line 106
           list($user, $pass, $cvsuser) = explode(':', $line);
But i don't know how to solve it . Any suggestion ?
Well i've found the source of problem and fixed it, but i hope that one of you will give me an explain . So with error_reporting set to E_ALL, i got the previous error on File_Passwd 0.9 beta package Q: Why ? A: i've a .htpasswd file with lines like
      user:password
and not
     user:password:cvsuser
Then my solution is to add a colon at end of each lines of my .htpasswd that not have a cvsuser But, i've tried to get documention that mention notion of cvsuser in a such htpasswd file Apache Doc didn't mention it Is that cvsuser a PEAR value introduced by Rasmus Lerdorf on the package (0.9 beta) ? Laurent
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.dev (#18917) next »