Ticket #241 (new defect)

Opened 1 month ago

FtpDeployTask reports FTP port as FTP server on error

Reported by: Johan Willard <johan@willard.se> Assigned to: hans
Priority: trivial Milestone: 2.3.1
Component: phing-tasks-ext Version: devel
Keywords: Cc:

Description

Looks like a typo. Patch included below:

--- FtpDeployTask.php	Wed Apr 16 09:20:00 2008
+++ classes\phing\tasks\ext\FtpDeployTask.php	Tue Apr 15 14:02:06 2008
@@ -126,10 +126,10 @@
 		$ftp = new Net_FTP($this->host, $this->port);
 		$ret = $ftp->connect();
 		if(PEAR::isError($ret))
-			throw new BuildException('Could not connect to FTP server '.$this->post.' on port '.$this->port.': '.$ret->getMessage());
+			throw new BuildException('Could not connect to FTP server '.$this->host.' on port '.$this->port.': '.$ret->getMessage());
 		$ret = $ftp->login($this->username, $this->password);
 		if(PEAR::isError($ret))
-			throw new BuildException('Could not login to FTP server '.$this->post.' on port '.$this->port.' with username '.$this->username.': '.$ret->getMessage());
+			throw new BuildException('Could not login to FTP server '.$this->host.' on port '.$this->port.' with username '.$this->username.': '.$ret->getMessage());
 		
 		if($this->clearFirst) {
 			// TODO change to a loop through all files and directories within current directory

Attachments


Add/Change #241 (FtpDeployTask reports FTP port as FTP server on error)