summaryrefslogtreecommitdiff
path: root/ext/filter/tests/bug77423.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/filter/tests/bug77423.phpt')
-rw-r--r--ext/filter/tests/bug77423.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/filter/tests/bug77423.phpt b/ext/filter/tests/bug77423.phpt
new file mode 100644
index 0000000000..761c7c359a
--- /dev/null
+++ b/ext/filter/tests/bug77423.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #77423 (parse_url() will deliver a wrong host to user)
+--FILE--
+<?php
+$urls = array(
+ "http://php.net\@aliyun.com/aaa.do",
+ "https://example.com\uFF03@bing.com",
+);
+foreach ($urls as $url) {
+ var_dump(filter_var($url, FILTER_VALIDATE_URL));
+}
+?>
+--EXPECT--
+bool(false)
+bool(false)