Bug in make-partial

From: Date: Fri, 28 Apr 2006 12:44:35 +0000
Subject: Bug in make-partial
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7828@lists.php.net to get a copy of this message
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)) {
Thanks, -- Scott Mattocks Author of: Pro PHP-GTK http://www.crisscott.com

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