Re: File/Passwd.php - a small patch (PHP Notice: Undefined offset:..)

From: Date: Fri, 23 Aug 2002 08:32:34 +0000
Subject: Re: File/Passwd.php - a small patch (PHP Notice: Undefined offset:..)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8612@lists.php.net to get a copy of this message
On Thu Aug 22, 2002 at 10:5730PM +0200, Bjoern Frantzen wrote: > PHP Notice: Undefined offset: 2 in /usr/share/pear/File/Passwd.php > on line 103 > > After seeing an amount of these in my logfiles, I saw that there isn't any > checking for an empty line in Passwd.php. In most (all?) the passwd-type > files I've seen the last entry is followed by a \n, making a blank line > which lead to a notice from explode. > > The following patch should fix this. Thanks, I've fixed this in CVS. -- - Martin Martin Jansen http://martinjansen.com/

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