Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FILTER_VALIDATE_URL returns false when latin chars (šđčćž) present in URL #17925

Open
pinta83 opened this issue Feb 25, 2025 · 1 comment

Comments

@pinta83
Copy link

pinta83 commented Feb 25, 2025

It's been a few years since latin chars are supported in domain names, and urls.

Description

The following code:

<?php var_dump(filter_var('info@ćufta.com', FILTER_VALIDATE_EMAIL));?>

Resulted in this output:

FALSE

But I expected this output instead:

TRUE

PHP Version

PHP 8.3.17

Operating System

Ubuntu Mint - Linux 5.4.0-208-generic #228-Ubuntu SMP Fri Feb 7 19:41:33 UTC 2025 x86_64

@pinta83 pinta83 changed the title FILTER_VALIDATE_URL returns false when latin chars present in URL FILTER_VALIDATE_URL returns false when latin chars (šđčćž) present in URL Feb 25, 2025
@Girgias
Copy link
Member

Girgias commented Feb 25, 2025

This would be solved by the new URI RFC: https://wiki.php.net/rfc/url_parsing_api

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants