[php-src] Issue #13378: filter_var with FILTER_VALIDATE_EMAIL accepts single letter tld

From: Date: Mon, 12 Feb 2024 13:15:57 +0000
Subject: [php-src] Issue #13378: filter_var with FILTER_VALIDATE_EMAIL accepts single letter tld
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246444@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13378 Author: gdandersson ### Description The following code: ```php <?php var_dump(filter_var("a@b.c", FILTER_VALIDATE_EMAIL)); ``` Resulted in this output: ``` a@b.c ``` But I expected this output instead: ``` false ``` ### PHP Version 8.3.2 ### Operating System macOS 14.3

« previous php.bugs (#246444) next »