found the solution on File_Password notice error

From: Date: Tue, 29 Jul 2003 17:26:37 +0000
Subject: found the solution on File_Password notice error
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18897@lists.php.net to get a copy of this message
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

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