Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.3

Bug #4994 Close TODO
Submitted: 2005-08-04 07:37 UTC
From: techtonik Assigned: tuupola
Status: Closed Package: File_Find
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-08-04 07:37 UTC] techtonik
Description: ------------ Hello, Mika. Closing long-standing TODO. Test script: --------------- --- Find_old.php Thu Aug 4 10:18:20 2005 +++ Find.php Thu Aug 4 10:38:08 2005 @@ -107,8 +107,12 @@ */ function &maptree($directory) { - /* TODO: make mapTree() statically callable */ - + /* if called statically */ + if (!isset($this) || !is_a($this, "File_Find")) { + $obj = &new File_Find(); + return $obj->maptree($directory); + } + /* clear the results just in case */ $this->files = array(); $this->directories = array();

Comments

 [2005-08-11 07:41 UTC] tuupola
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.