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

Bug #13690 getRecursive does not work because of '.' and '..' directories
Submitted: 2008-04-16 06:18 UTC
From: mumura Assigned: jorrit
Status: Closed Package: Net_FTP (version 1.3.5)
PHP Version: 5.2.5 OS:
Roadmaps: 1.3.6, 1.4.0a2    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 38 = ?

 
 [2008-04-16 06:18 UTC] mumura (Mike Raistrick)
Description: ------------ Problem as per original bug 2268 still seems to be present in 1.3.5. The test condition for directories '.' and '..' seems to be missing the "name" array key, so on line 977 if ($dir_entry == '.' || $dir_entry == '..') { should be if ($dir_entry["name"] == '.' || $dir_entry["name"] == '..') { Have attached patch file

Comments

 [2008-04-22 20:52 UTC] jorrit (Jorrit Schippers)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.