"'%value%' does not appear to be a valid IP address" ); /** * Defined by Zend_Validate_Interface * * Returns true if and only if $value is a valid IP address * * @param mixed $value * @return boolean */ public function isValid($value) { $valueString = (string) $value; $this->_setValue($valueString); if (ip2long($valueString) === false) { $this->_error(); return false; } return true; } }