Warning when using File/Find.php

From: Date: Tue, 21 Aug 2001 02:20:54 +0000
Subject: Warning when using File/Find.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1640@lists.php.net to get a copy of this message
I get Undefined variable: matches in <b>/public/mfischer-home/mfischer/php4/lib/php/File/Find.php</b> on line <b>91</b><br> when the glob doesn't match any file. Proper initialization of $matches would prevent this. Using glob as $files = File_Find::glob($pattern,$path); is the right way, isn't it ? - Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischer@guru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend-

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