diff options
author | Joe Watkins <krakjoe@php.net> | 2017-06-22 11:53:07 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2017-06-22 11:53:27 +0100 |
commit | 7945dca6ec83be384057888a11d204196f70ba5b (patch) | |
tree | 01df6d3eaf5ddb61b3b8002fa0c52a1db15acf99 /ext/standard/tests/url | |
parent | 3250fa09b2b9c1809a3e3529e4e9a9fb69f99955 (diff) | |
parent | ed1f64e0837dbc70496c4b17be24703373871c68 (diff) | |
download | php-git-7945dca6ec83be384057888a11d204196f70ba5b.tar.gz |
Merge branch 'PHP-7.1'
* PHP-7.1:
fix bug #74780 parse_url() borken when query string contains colon
Update NEWS
Diffstat (limited to 'ext/standard/tests/url')
-rw-r--r-- | ext/standard/tests/url/bug74780.phpt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ext/standard/tests/url/bug74780.phpt b/ext/standard/tests/url/bug74780.phpt new file mode 100644 index 0000000000..ae464d971b --- /dev/null +++ b/ext/standard/tests/url/bug74780.phpt @@ -0,0 +1,38 @@ +--TEST-- +Bug #74780 parse_url() borks when query string contains colon +--FILE-- +<?php +var_dump( + parse_url('//php.net/path?query=1:2'), + parse_url('//php.net/path.php?query=a:b'), + parse_url('//username@php.net/path?query=1:2') +); + +?> +--EXPECT-- +array(3) { + ["host"]=> + string(7) "php.net" + ["path"]=> + string(5) "/path" + ["query"]=> + string(9) "query=1:2" +} +array(3) { + ["host"]=> + string(7) "php.net" + ["path"]=> + string(9) "/path.php" + ["query"]=> + string(9) "query=a:b" +} +array(4) { + ["host"]=> + string(7) "php.net" + ["user"]=> + string(8) "username" + ["path"]=> + string(5) "/path" + ["query"]=> + string(9) "query=1:2" +}
\ No newline at end of file |