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

Bug #3778 Notice of Uninitialized string offset in function _rm_dir_recursive
Submitted: 2005-03-11 16:05 UTC
From: charles at acolytecommunication dot com Assigned: toby
Status: Closed Package: Net_FTP
PHP Version: 4.3.10 OS: Windows XP SP2
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-11 16:05 UTC] charles at acolytecommunication dot com
Description: ------------ Notice: Uninitialized string offset: 0 in D:\Projets\MaisonRRPlus\application\lib\Net\FTP.php on line 1891 The emptyness should be tested before trying to use that string I think. Only generates a notice, not an error and not even a warning but still... Reproduce code: --------------- kinda a hard to reproduce being and error using a remote service. I think the error mostly lies in the way the result of the ls command is handled. Expected result: ---------------- The function should either return an error or, at least, handle this more gracefully. Actual result: -------------- A notice is generated : Notice: Uninitialized string offset: 0 in D:\Projets\MaisonRRPlus\application\lib\Net\FTP.php on line 1891

Comments

 [2005-03-31 19:43 UTC] toby
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.