xref: /PHP-8.3/ext/filter/tests/bug44445.phpt (revision 74859783)
1--TEST--
2Bug #44445 (email validator does not handle domains starting/ending with a -)
3--EXTENSIONS--
4filter
5--FILE--
6<?php
7var_dump(filter_var("foo@-foo.com",FILTER_VALIDATE_EMAIL));
8var_dump(filter_var("foo@foo-.com",FILTER_VALIDATE_EMAIL));
9?>
10--EXPECT--
11bool(false)
12bool(false)
13