Re: Bug in make-partial

From: Date: Fri, 28 Apr 2006 12:50:36 +0000
Subject: Re: Bug in make-partial
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7829@lists.php.net to get a copy of this message
On Fri, 28 Apr 2006 08:44:35 -0400 scott@crisscott.com (Scott Mattocks) wrote: > Doing a partial build throws out a bunch of notices about an > uninitialized variable. Fixing it is simple (see patch below) but I > don't want to mess a file that I didn't write just in case there is > more to it than I think. If no one has any objections, I'll commit > the change to CVS. > > Index: make-partial.php > =================================================================== > RCS file: /repository/peardoc/make-partial.php,v retrieving revision > 1.9 diff -u -r1.9 make-partial.php > --- make-partial.php 28 Sep 2005 20:57:08 -0000 1.9 > +++ make-partial.php 28 Apr 2006 12:40:20 -0000 > @@ -84,6 +84,7 @@ > * Loop through the file and build a new file depending on the users > * choice. > */ > +$inPart = false; > foreach ($file as $line) { > // <part id="foo"> > if (preg_match("/<part id=\"([a-z-]+)\">/", $line, $matches)) { > Can you report a bug with a link to the patch (can be to the news.php.net entry for your post)? So it does not get lost. Thanks, -- Pierre Did I help you? Please donate http://blog.thepimp.net/index.php/1998/04/12/57-please-donate

« previous php.pear.doc (#7829) next »