Issue Type: Bug Created: 2010-02-04T04:25:42.000+0000 Last Updated: 2010-02-04T11:38:21.000+0000 Status: Resolved Fix version(s): - 1.10.1 (10/Feb/10)
Reporter: Chad Ladensack (chadladensack) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate
Related issues: Attachments:
Problem: When performing MX and Deep validation I receive the following error "Fatal error: Call to undefined method Zend_Validate_EmailAddress::_binaryToIp()".
Problem Source: Lines 365 and 366 call a method called $this->_binaryToIp() however, this method doesn't exist. A method called _toIp() does exist and based on the method description it indicates a binary string to an IP address conversion takes place.
Reproducing: Trying to validate "firstname.lastname@example.org" with the following form element reproduces the error.
$this->addElement( 'text', 'email', array( 'label' => 'Your Email Address', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array( array('EmailAddress', true, array( 'mx' => true, 'deep' => true )) ) ) );
Verify Problem: Performing a grep on the Zend library indicates a method called $this->_binaryToIp does not exist. It looks like the problem was introduced in revision 18050.
Correction: Replacing $this->_binaryToIp to $this->_toIp corrected the problem.
Posted by Thomas Weidner (thomas) on 2010-02-04T11:38:21.000+0000
Fixed with r20910
Have you found an issue?
See the Overview section for more details.