Ticket #1974 (closed defect: fixed)

Opened 18 months ago

Last modified 18 months ago

Email validator checkdnsrr() warning

Reported by: smottt Owned by: jwage
Priority: minor Milestone: 1.0.9
Component: Validators Version: 1.0.7
Severity: Keywords:
Cc: Has Test: no
Status: Pending Core Response Has Patch: no

Description

I have a field which has the email validator assigned to it. If I type in a partial email address like 'my.name@' it produces a warning:

Warning: checkdnsrr() [function.checkdnsrr]: Host and type cannot be empty in /var/www/myproject/lib/Doctrine/Validator/Email.php on line 114

I've tested this on Doctrine versions: 1.0.7, 1.0.8 and r5567.

Some additional info:

php -v
PHP 5.2.9 (cli) (built: Mar  3 2009 22:09:12) (DEBUG)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies


apachectl -v
Server version: Apache/2.2.11 (Unix)


mysql -V
mysql  Ver 14.12 Distrib 5.0.67, for debian-linux-gnu (i486) using readline 5.2

Change History

Changed 18 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed

(In [5605]) [1.0, 1.1] Fixes email validator from throwing warnings with empty host in email address (closes #1974)

Changed 18 months ago by jwage

  • milestone changed from New to 1.0.9
Note: See TracTickets for help on using tickets.