PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_FTP » Bug #1480

_list_and_parse() may throw warnings

Details

Submitted2004-05-24 13:06 UTC
Frompear dot 20 dot fab at spamgourmet dot com
Assignedtoby
StatusClosed
PackageNet_FTP
PHP Version4.3.6
OSwin 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 ;-)