php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52991 wrong output
Submitted: 2010-10-05 11:32 UTC Modified: 2013-02-18 00:34 UTC
From: oinam dot s at ldh dot 01s dot in Assigned:
Status: No Feedback Package: Filter related
PHP Version: 5.3.3 OS: windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: oinam dot s at ldh dot 01s dot in
New email:
PHP Version: OS:

 

 [2010-10-05 11:32 UTC] oinam dot s at ldh dot 01s dot in
Description:
------------
When I test email using filter_var it gives incorrect output.


Test script:
---------------
<?php

$email_c = 'oinam.s@ldh.01s.in';

if (filter_var($email_c, FILTER_VALIDATE_EMAIL)) {
    echo "This ($email_c) email address is considered valid.";
}
else
{
 echo "This ( $email_c ) email address is considered invalid.";
}

?> 

Expected result:
----------------
This script works fine give correct result on php 5.2.x not on 5.3.x

Actual result:
--------------
The following should be the actual output
This ( oinam.s@ldh.01s.in ) email address is considered valid.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-07 04:09 UTC] aharvey@php.net
-Status: Open +Status: Feedback
 [2010-10-07 04:09 UTC] aharvey@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

I can't reproduce this on any current 5.2, 5.3 or trunk build.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 14:01:27 2024 UTC