FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17279&edit=1

ID: 17279
Updated by: amirsaied@gmail.com
Reported By: afanstudio at gmail dot com
Summary: Validate::email() with 'fullTLDValidation' => 'true'
always return false.
-Status: Open
+Status: Closed
Type: Bug
Package: Validate
Operating System: linux
Package Version: SVN
PHP Version: 5.3.0
-Assigned To:
+Assigned To: amir
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: amir
Now if you don't provide a TLD option, fullTLDValidation would check
against all
possible options.

One can overwrite this behavior by supplying specific options.


Previous Comments:
------------------------------------------------------------------------

[2010-03-31 05:06:52] doconnor

Looking at the code, you have to add in some of the validations you want
to use.

ie:
if(!empty($options["VALIDATE_ITLD_EMAILS"]))
array_push($validate, 'itld');
if(!empty($options["VALIDATE_GTLD_EMAILS"]))
array_push($validate, 'gtld');
if(!empty($options["VALIDATE_CCTLD_EMAILS"]))
array_push($validate, 'cctld');

I can't decide if it should raise a PEAR_Error, or return 'false' like
it does.

------------------------------------------------------------------------

[2010-03-30 12:46:17] fzhan

Description:
------------
There's actually not fix on that since in the code itself states: "
/**
* @todo Fix bug here.. even if it passes this, it won't be
passing
* The regular expression below
*/
"
Even with the updates of Net_IDNA from svn does not make this work.

Test script:
---------------
require_once 'Validate.php';
var_dump(Validate::email('afanstudio@gmail.com',
array('fullTLDValidation' => true,'use_rfc822' => true)));

Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false)

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 30, '11 at 10:35a
activeMar 30, '11 at 10:35a
posts1
users1
websitepear.php.net

1 user in discussion

Amirsaied: 1 post

People

Translate

site design / logo © 2022 Grokbase