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

ID: 19143
Updated by: bufny@cs.ubbcluj.ro
Reported By: bufny at cs dot ubbcluj dot ro
-Summary: user@yahoo..com reported as valid email address
+Summary: user@yahoo..com reported as a valid email address
Status: Open
Type: Bug
Package: Validate
-Operating System: Windows 7
+Operating System: Windows 7, Linux
Package Version: 0.8.5
PHP Version: 5.3.0
Roadmap Versions:
New Comment:

-Summary: user@yahoo..com reported as valid
email address
+Summary: user@yahoo..com reported as a valid
email address
-Operating System: Windows 7
+Operating System: Windows 7, Linux



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

[2011-12-18 19:00:26] bufny

Description:
------------
Bug in email method of Validate class. Incorrect e-mail address reported
as valid.

Test script:
---------------
<?php
require_once("Validate.php");
$validator = new Validate();
$email = "user@yahoo..com";
if ($validator->email($email))
print "$email is a valid email address\n";
else
print "$email is not a valid email address\n";
?>


Expected result:
----------------
user@yahoo..com is not a valid email address

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

Search Discussions

  • Daniel Oconnor at Dec 19, 2011 at 11:21 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19143&edit=1

    ID: 19143
    Updated by: daniel.oconnor@gmail.com
    Reported By: bufny at cs dot ubbcluj dot ro
    Summary: user@yahoo..com reported as a valid email address
    Status: Open
    Type: Bug
    Package: Validate
    Operating System: Windows 7, Linux
    Package Version: 0.8.5
    PHP Version: 5.3.0
    Roadmap Versions:
    New Comment:

    Thanks for the report - how annoying, all of our tests were passing
    happily.


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

    [2011-12-18 19:19:31] bufny

    -Summary: user@yahoo..com reported as valid
    email address
    +Summary: user@yahoo..com reported as a valid
    email address
    -Operating System: Windows 7
    +Operating System: Windows 7, Linux


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

    [2011-12-18 19:00:26] bufny

    Description:
    ------------
    Bug in email method of Validate class. Incorrect e-mail address reported
    as valid.

    Test script:
    ---------------
    <?php
    require_once("Validate.php");
    $validator = new Validate();
    $email = "user@yahoo..com";
    if ($validator->email($email))
    print "$email is a valid email address\n";
    else
    print "$email is not a valid email address\n";
    ?>


    Expected result:
    ----------------
    user@yahoo..com is not a valid email address

    ------------------------------------------------------------------------
  • Daniel Oconnor at Dec 19, 2011 at 11:23 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19143&edit=1

    ID: 19143
    Updated by: daniel.oconnor@gmail.com
    Reported By: bufny at cs dot ubbcluj dot ro
    Summary: user@yahoo..com reported as a valid email address
    Status: Open
    Type: Bug
    Package: Validate
    Operating System: Windows 7, Linux
    Package Version: 0.8.5
    PHP Version: 5.3.0
    Roadmap Versions:
    New Comment:

    Well, at least it's not regression from the release.

    clockwerx@clockwerx-desktop:~$ pear list | grep Validate
    Validate 0.8.3 beta

    and

    clockwerx@clockwerx-desktop:~$ php bar.php
    user@yahoo..com is a valid email address


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

    [2011-12-19 12:21:36] doconnor

    Thanks for the report - how annoying, all of our tests were passing
    happily.

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

    [2011-12-18 19:19:31] bufny

    -Summary: user@yahoo..com reported as valid
    email address
    +Summary: user@yahoo..com reported as a valid
    email address
    -Operating System: Windows 7
    +Operating System: Windows 7, Linux


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

    [2011-12-18 19:00:26] bufny

    Description:
    ------------
    Bug in email method of Validate class. Incorrect e-mail address reported
    as valid.

    Test script:
    ---------------
    <?php
    require_once("Validate.php");
    $validator = new Validate();
    $email = "user@yahoo..com";
    if ($validator->email($email))
    print "$email is a valid email address\n";
    else
    print "$email is not a valid email address\n";
    ?>


    Expected result:
    ----------------
    user@yahoo..com is not a valid email address

    ------------------------------------------------------------------------
  • Daniel Oconnor at Dec 19, 2011 at 11:23 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19143&edit=1

    ID: 19143
    Updated by: daniel.oconnor@gmail.com
    Reported By: bufny at cs dot ubbcluj dot ro
    Summary: user@yahoo..com reported as a valid email address
    -Status: Open
    +Status: Verified
    Type: Bug
    Package: Validate
    Operating System: Windows 7, Linux
    Package Version: 0.8.5
    PHP Version: 5.3.0
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Verified



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

    [2011-12-19 12:23:16] doconnor

    Well, at least it's not regression from the release.

    clockwerx@clockwerx-desktop:~$ pear list | grep Validate
    Validate 0.8.3 beta

    and

    clockwerx@clockwerx-desktop:~$ php bar.php
    user@yahoo..com is a valid email address

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

    [2011-12-19 12:21:36] doconnor

    Thanks for the report - how annoying, all of our tests were passing
    happily.

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

    [2011-12-18 19:19:31] bufny

    -Summary: user@yahoo..com reported as valid
    email address
    +Summary: user@yahoo..com reported as a valid
    email address
    -Operating System: Windows 7
    +Operating System: Windows 7, Linux


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

    [2011-12-18 19:00:26] bufny

    Description:
    ------------
    Bug in email method of Validate class. Incorrect e-mail address reported
    as valid.

    Test script:
    ---------------
    <?php
    require_once("Validate.php");
    $validator = new Validate();
    $email = "user@yahoo..com";
    if ($validator->email($email))
    print "$email is a valid email address\n";
    else
    print "$email is not a valid email address\n";
    ?>


    Expected result:
    ----------------
    user@yahoo..com is not a valid email address

    ------------------------------------------------------------------------
  • Daniel Oconnor at Dec 19, 2011 at 11:42 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19143&edit=1

    ID: 19143
    Updated by: daniel.oconnor@gmail.com
    Reported By: bufny at cs dot ubbcluj dot ro
    Summary: user@yahoo..com reported as a valid email address
    -Status: Verified
    +Status: Bogus
    Type: Bug
    Package: Validate
    Operating System: Windows 7, Linux
    Package Version: 0.8.5
    PHP Version: 5.3.0
    Roadmap Versions:
    New Comment:

    -Status: Verified
    +Status: Bogus
    So - try :
    <?php
    require_once("Validate.php");
    $validator = new Validate();
    $email = "user@yahoo..com";
    if ($validator->email($email, array('use_rfc822' => true)))
    print "$email is a valid email address\n";
    else
    print "$email is not a valid email address\n";

    Annoying that by default it's not this strict, but if you ask it to
    be... voila.


    clockwerx@clockwerx-desktop:~$ php bar.php
    user@yahoo..com is not a valid email address


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

    [2011-12-19 12:23:36] doconnor

    -Status: Open
    +Status: Verified


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

    [2011-12-19 12:23:16] doconnor

    Well, at least it's not regression from the release.

    clockwerx@clockwerx-desktop:~$ pear list | grep Validate
    Validate 0.8.3 beta

    and

    clockwerx@clockwerx-desktop:~$ php bar.php
    user@yahoo..com is a valid email address

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

    [2011-12-19 12:21:36] doconnor

    Thanks for the report - how annoying, all of our tests were passing
    happily.

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

    [2011-12-18 19:19:31] bufny

    -Summary: user@yahoo..com reported as valid
    email address
    +Summary: user@yahoo..com reported as a valid
    email address
    -Operating System: Windows 7
    +Operating System: Windows 7, Linux


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

    [2011-12-18 19:00:26] bufny

    Description:
    ------------
    Bug in email method of Validate class. Incorrect e-mail address reported
    as valid.

    Test script:
    ---------------
    <?php
    require_once("Validate.php");
    $validator = new Validate();
    $email = "user@yahoo..com";
    if ($validator->email($email))
    print "$email is a valid email address\n";
    else
    print "$email is not a valid email address\n";
    ?>


    Expected result:
    ----------------
    user@yahoo..com is not a valid email address

    ------------------------------------------------------------------------
  • Bufny at Dec 19, 2011 at 7:22 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19143&edit=1

    ID: 19143
    Updated by: bufny@cs.ubbcluj.ro
    Reported By: bufny at cs dot ubbcluj dot ro
    Summary: user@yahoo..com reported as a valid email address
    Status: Bogus
    Type: Bug
    Package: Validate
    Operating System: Windows 7, Linux
    Package Version: 0.8.5
    PHP Version: 5.3.0
    Roadmap Versions:
    New Comment:

    Thank you for clarifying this. I apologize for the bogus report.


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

    [2011-12-19 12:43:04] doconnor

    -Status: Verified
    +Status: Bogus
    So - try :
    <?php
    require_once("Validate.php");
    $validator = new Validate();
    $email = "user@yahoo..com";
    if ($validator->email($email, array('use_rfc822' => true)))
    print "$email is a valid email address\n";
    else
    print "$email is not a valid email address\n";

    Annoying that by default it's not this strict, but if you ask it to
    be... voila.


    clockwerx@clockwerx-desktop:~$ php bar.php
    user@yahoo..com is not a valid email address

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

    [2011-12-19 12:23:36] doconnor

    -Status: Open
    +Status: Verified


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

    [2011-12-19 12:23:16] doconnor

    Well, at least it's not regression from the release.

    clockwerx@clockwerx-desktop:~$ pear list | grep Validate
    Validate 0.8.3 beta

    and

    clockwerx@clockwerx-desktop:~$ php bar.php
    user@yahoo..com is a valid email address

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

    [2011-12-19 12:21:36] doconnor

    Thanks for the report - how annoying, all of our tests were passing
    happily.

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

    [2011-12-18 19:19:31] bufny

    -Summary: user@yahoo..com reported as valid
    email address
    +Summary: user@yahoo..com reported as a valid
    email address
    -Operating System: Windows 7
    +Operating System: Windows 7, Linux


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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=19143

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 18, '11 at 6:19p
activeDec 19, '11 at 7:22p
posts6
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 4 posts Bufny: 2 posts

People

Translate

site design / logo © 2022 Grokbase