Hi all. Having a problem using PEAR's File_Find class (specifically the maptree() method) which I'm hoping someone can help with.
I'm doing this work locally on my machine, using the phpdev setup.
Here is the code I've got in pear_test.php, taken almost directly from PHP Developer's Cookbook:
<?php
ini_set('include_path','C:\phpdev\php\pear');
require_once 'File/Find.php';
list ($directories,$files) = File_Find::maptree('C:\phpdev\www\webapps');
?>
and here are the error messages I get when I call this file:
Warning: Problem with method call. Report this bug in C:\phpdev\php\pear\File\Find.php on line 94
Warning: First argument to array_push() needs to be an array in C:\phpdev\php\pear\File\Find.php on line 178 (this message is printed 11 times)
Warning: First argument to array_push() needs to be an array in C:\phpdev\php\pear\File\Find.php on line 95
Anyone have any idea what's going on here? I've searched around but have been unable to find anything which points to a solution.
Thanks in advance,
Pablo