Zend Framework

getMessage() should be getMessages() in Zend/Mail/Protocol/Smtp.php

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.0RC1
  • Fix Version/s: 1.6.2
  • Component/s: Zend_Mail
  • Labels:
    None
  • Fix Version Priority:
    Should Have

Description

In lib/Zend/Mail/Protocol/Smtp.php there appears to be a typo: in the helo() function when the client hostname fails to validate, the exception string fails to be built because the method to get the error messages is incorrect (missing an "s").

throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessage()));

should read

throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessages()));

Activity

Hide
Satoru Yoshida added a comment -

Solved in SVN r11196.
The getMessage() is not found, but getMessages() function exists in Zend_Validate that was included by Zend/Mail/Protocol/Abstract.php.

Abstract.php is parent of Smtp.php.

Show
Satoru Yoshida added a comment - Solved in SVN r11196. The getMessage() is not found, but getMessages() function exists in Zend_Validate that was included by Zend/Mail/Protocol/Abstract.php. Abstract.php is parent of Smtp.php.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: