php-src/ext/standard/tests/url
Christoph M. Becker e49922d3f8 Fix #69976: Unable to parse "all" urls with colon char
If a colon occurs in a query string or fragment of a partial URL without
scheme, parse_url() tries to regard it as port separator. If up to 5 digits
follow and then a slash or the end of the string, parse_url() fails.

We're fixing this by checking whether the colon is part of the query string or
the fragment, under the assumption that question marks and hash signs are only
allowed as separators of query string and fragments, respectively, what is
guarenteed for URIs (RFC 3986), but not necessarily for URLs (RFC 1738) where
question marks are allowed for usernames and passwords.

Anyhow, this constitutes a minor BC, so the fix is applied to master only.
2015-07-01 23:48:16 +02:00
..
base64_decode_basic_001.phpt
base64_decode_basic_002.phpt
base64_decode_error_001.phpt
base64_decode_variation_001.phpt
base64_decode_variation_002.phpt
base64_encode_basic_001.phpt
base64_encode_basic_002.phpt
base64_encode_error_001.phpt
base64_encode_variation_001.phpt Changed silent conversion of array to string to produce a notice. (Patrick) 2011-10-21 06:08:47 +00:00
bug47174.phpt
bug52327.phpt
bug53248.phpt
bug54180.phpt
bug55273.phpt
bug55399.phpt
bug63162.phpt fix test and move to proper place 2012-09-30 19:24:42 -07:00
bug68917.phpt Fixed bug #68917 (parse_url fails on some partial urls) 2015-03-06 20:51:22 +08:00
bug69976.phpt Fix #69976: Unable to parse "all" urls with colon char 2015-07-01 23:48:16 +02:00
get_headers_error_001.phpt
get_headers_error_002.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
parse_url_basic_001.phpt Fixed bug #68129 2014-10-09 08:21:30 +08:00
parse_url_basic_002.phpt add a test case previously broken by a bad fix 2014-04-24 23:58:38 -07:00
parse_url_basic_003.phpt add a test case previously broken by a bad fix 2014-04-24 23:58:38 -07:00
parse_url_basic_004.phpt add a test case previously broken by a bad fix 2014-04-24 23:58:38 -07:00
parse_url_basic_005.phpt Fixed bug #68129 2014-10-09 08:21:30 +08:00
parse_url_basic_006.phpt Fixed bug #68129 2014-10-09 08:21:30 +08:00
parse_url_basic_007.phpt add a test case previously broken by a bad fix 2014-04-24 23:58:38 -07:00
parse_url_basic_008.phpt add a test case previously broken by a bad fix 2014-04-24 23:58:38 -07:00
parse_url_basic_009.phpt add a test case previously broken by a bad fix 2014-04-24 23:58:38 -07:00
parse_url_basic_010.phpt
parse_url_error_001.phpt
parse_url_error_002.phpt
parse_url_relative_scheme.phpt bug #62844; relative URL schemes in parse_url() 2012-08-19 22:15:58 -07:00
parse_url_variation_001.phpt Changed silent conversion of array to string to produce a notice. (Patrick) 2011-10-21 06:08:47 +00:00
parse_url_variation_002_32bit.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
parse_url_variation_002_64bit.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
rawurldecode_error_001.phpt
rawurldecode_variation_001.phpt Changed silent conversion of array to string to produce a notice. (Patrick) 2011-10-21 06:08:47 +00:00
rawurlencode_error_001.phpt
rawurlencode_variation_001.phpt Changed silent conversion of array to string to produce a notice. (Patrick) 2011-10-21 06:08:47 +00:00
urldecode_error_001.phpt
urldecode_variation_001.phpt Changed silent conversion of array to string to produce a notice. (Patrick) 2011-10-21 06:08:47 +00:00
urlencode_error_001.phpt
urlencode_variation_001.phpt Changed silent conversion of array to string to produce a notice. (Patrick) 2011-10-21 06:08:47 +00:00
urls.inc add a test case previously broken by a bad fix 2014-04-24 23:58:38 -07:00