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

Bug #1480 _list_and_parse() may throw warnings
Submitted: 2004-05-24 13:06 UTC
From: pear dot 20 dot fab at spamgourmet dot com Assigned: toby
Status: Closed Package: Net_FTP
PHP Version: 4.3.6 OS: win 2000
Roadmaps: (Not assigned)    
Subscription  


 [2004-05-24 13:06 UTC] pear dot 20 dot fab at spamgourmet dot com
Description: ------------ ftp_rawlist() as used in _list_and_parse() can return a FALSE when somethings doesn't work. So the following foreach would not get an array as expected it PHP would throw a warning, because the current code doesn't cover this isssue. Attention: that ftp_rawlist() returns a boolean value in case of an error is not mentioned in the PHP doc.

Comments

 [2004-05-24 13:08 UTC] pear dot 20 dot fab at spamgourmet dot com
narf, horrible grammar ;-)
 [2004-06-14 20:36 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.