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 #2210

line 258 has a typo

Details

Submitted2004-08-24 21:23 UTC
Fromtim at komta dot com
Assignedtoby
StatusClosed
PackageNet_FTP
PHP Version4.3.8
OSWindows 2000 Server
Roadmaps(Not assigned)

Comments

[2004-08-24 21:23 UTC] tim at komta dot com

Description:
------------
function pwd () {
$res = @ftp_pwd($this->_handle);
if (!$res) {
return $this->raiseErrro("Could not determine the actual path.", 0);
} else {
return $res;
}
}

Should be:

function pwd () {
$res = @ftp_pwd($this->_handle);
if (!$res) {
return $this->raiseError("Could not determine the actual path.", 0);
} else {
return $res;
}
}

Reproduce code:
---------------
Any call to NetFTP::pwd() that results in an error

[2004-09-01 15:04 UTC] tim at komta dot com

Actually, Toby, it hasn't been fixed at all.

If you look at line 258 of version 1.2 (the current stable release) of Net_FTP, it is exactly as I've reported in the bug.

In fact, I JUST downloaded it again to be sure, and there's the typo. Line 258 of the Net_FTP file.

If you don't feel like fixing it, that's fine with me.