cvs: php4 /pear/File Find.php

From: Date: Tue, 22 Jan 2002 11:28:31 +0000
Subject: cvs: php4 /pear/File Find.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2050@lists.php.net to get a copy of this message
jan Tue Jan 22 06:28:31 2002 EDT Modified files: /php4/pear/File Find.php Log: - initialize $matches to avoid error message on unset variable if no matches are found. Index: php4/pear/File/Find.php diff -u php4/pear/File/Find.php:1.19 php4/pear/File/Find.php:1.20 --- php4/pear/File/Find.php:1.19 Tue Dec 11 10:31:21 2001 +++ php4/pear/File/Find.php Tue Jan 22 06:28:30 2002 @@ -16,7 +16,7 @@ // | Authors: Sterling Hughes <sterling@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Find.php,v 1.19 2001/12/11 15:31:21 sebastian Exp $ +// $Id: Find.php,v 1.20 2002/01/22 11:28:30 jan Exp $ // require_once 'PEAR.php'; @@ -25,7 +25,7 @@ * Commonly needed functions searching directory trees * * @access public -* @version $Id: Find.php,v 1.19 2001/12/11 15:31:21 sebastian Exp $ +* @version $Id: Find.php,v 1.20 2002/01/22 11:28:30 jan Exp $ * @package File * @author Sterling Hughes <sterling@php.net> */ @@ -134,6 +134,7 @@ * @access public */ function &search ($pattern, $directory, $type='php') { + $matches = array(); list (,$files) = File_Find::maptree($directory); $match_function = File_Find::_determineRegex($pattern, $type);

« previous php.pear.cvs (#2050) next »