xref: /PHP-8.0/ext/filter/tests/bug44445.phpt (revision 782352c5)
1--TEST--
2Bug #44445 (email validator does not handle domains starting/ending with a -)
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
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