Home » Networking » Net_FTP » Bug #1480
_list_and_parse() may throw warnings
Details
| 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) |
Comments
[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.
[2004-05-24 13:08 UTC] pear dot 20 dot fab at spamgourmet dot com
narf, horrible grammar ;-)