Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-5.4: add bug #63162 fix test and move to proper place synergy ftl. Removed duplicate fields. adding test phpt Bug #63162 - parse_url does not matches password component fix news
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--TEST-- | ||
Test parse_url() for bug #63162 | ||
--DESCRIPTION-- | ||
This test covers tests the inputs: | ||
[0]=> http://user:pass@host | ||
[1]=> //user:pass@host | ||
[2]=> //user@host | ||
--FILE-- | ||
<?php | ||
var_dump(parse_url('http://user:pass@host')); | ||
var_dump(parse_url('//user:pass@host')); | ||
var_dump(parse_url('//user@host')); | ||
?> | ||
--EXPECT-- | ||
array(4) { | ||
["scheme"]=> | ||
string(4) "http" | ||
["host"]=> | ||
string(4) "host" | ||
["user"]=> | ||
string(4) "user" | ||
["pass"]=> | ||
string(4) "pass" | ||
} | ||
array(3) { | ||
["host"]=> | ||
string(4) "host" | ||
["user"]=> | ||
string(4) "user" | ||
["pass"]=> | ||
string(4) "pass" | ||
} | ||
array(2) { | ||
["host"]=> | ||
string(4) "host" | ||
["user"]=> | ||
string(4) "user" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters