xref: /php-src/ext/filter/tests/bug77423.phpt (revision 6600ad60)
1--TEST--
2Bug #77423 (parse_url() will deliver a wrong host to user)
3--EXTENSIONS--
4filter
5--FILE--
6<?php
7$urls = array(
8    "http://php.net\@aliyun.com/aaa.do",
9    "https://example.com\uFF03@bing.com",
10);
11foreach ($urls as $url) {
12    var_dump(filter_var($url, FILTER_VALIDATE_URL));
13}
14?>
15--EXPECT--
16bool(false)
17bool(false)
18