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
Tjerk Meesters
1236a30746
Merge branch 'PHP-5.6'
...
* PHP-5.6:
Fixed bug #68917 (parse_url fails on some partial urls)
Update test to run locally instead of remotely
2015-03-06 20:59:52 +08:00
Tjerk Meesters
d7fb52ea20
Fixed bug #68917 (parse_url fails on some partial urls)
2015-03-06 20:51:22 +08:00
Andrea Faulds
e5eb9530ab
Use "float" and "integer" in typehint and zpp errors
2014-12-21 13:23:02 +00:00
Andrea Faulds
b70779304c
Fixed some 32-bit tests
2014-11-09 01:53:52 +00:00
Tjerk Meesters
d0e51f5ce9
Fixed bug #68129
...
Empty usernames and passwords are now treated differently from no username or password
For example, empty password:
ftp://user:@example.org
Empty username:
ftp://:password@example.org
Empty username and empty password
ftp://:@example.org
2014-10-09 08:21:30 +08:00
Stanislav Malyshev
03c703b8bd
add a test case previously broken by a bad fix
2014-04-24 23:58:38 -07:00
Stanislav Malyshev
a328803803
Revert "Fixed bug #64604 "
...
This reverts commit b05c088a3a .
Breaks parsing urls where query has : in it, like: /foo/bar?baz=goo:boo
2014-04-24 23:50:45 -07:00
Ingo Walz
b05c088a3a
Fixed bug #64604
2014-04-13 18:37:40 -07:00
Sara Golemon
8b6b39fdcf
Add a couple more test cases to parse_url() tests
...
http://::# (valid but silly)
http://# (invalid)
2013-11-06 10:32:11 +01:00
Stanislav Malyshev
bf064112b7
fix test and move to proper place
2012-09-30 19:24:42 -07:00
Andrew Faulds
36b88d77f2
bug #62844 ; relative URL schemes in parse_url()
2012-08-19 22:15:58 -07:00
Stanislav Malyshev
d81ea16ef1
Changed silent conversion of array to string to produce a notice. (Patrick)
2011-10-21 06:08:47 +00:00
Ilia Alshanetsky
9915700fa1
Fixed bug #55273 (base64_decode() with strict rejects whitespace after pad)
2011-09-12 17:20:24 +00:00
Ilia Alshanetsky
46513c07dc
Fixed bug #55399 (parse_url() incorrectly treats ':' as a valid path)
2011-08-11 13:01:52 +00:00
Pierrick Charron
6e74d95f34
Fixed bug #54180 (parse_url() incorrectly parses path when ? in fragment)
2011-03-13 04:02:56 +00:00
Ilia Alshanetsky
6186c16449
Fixed parse_url() tests to account for port validation
2011-02-06 17:23:57 +00:00
Ilia Alshanetsky
4bc5cac317
Fixed bug #52327 (base64_decode() improper handling of leading padding in strict mode)
2010-11-26 20:59:13 +00:00
Felipe Pena
83ebbc36a1
- Fixed bug #53248 (rawurlencode RFC 3986 EBCDIC support misses tilde char).
...
patch by: Justin Martin (frozenfire@php)
2010-11-07 12:59:22 +00:00
Pierre Joye
cba1ed2475
- #50563 , removing E_WARNING from parse_url()
2010-06-16 18:56:24 +00:00
Zoe Slattery
6a22ec3eda
More tests from 2009 testfest
2009-08-30 09:30:13 +00:00
Zoe Slattery
1c98e49afd
Test from 2009 testfest
2009-08-26 17:17:58 +00:00
Matt Wilmas
26cde1ee2f
MFH: Updated tests after double->long conversion change (basically to match 5.2)
...
# Let me know about other failing tests I missed
2009-06-04 18:25:06 +00:00
Arnaud Le Blanc
a772d7c3ef
MFH
2009-04-24 19:48:41 +00:00
Ilia Alshanetsky
4eb69eadc6
Improved fix for bug #47174 & added a test
2009-01-25 18:27:12 +00:00
andy wharmby
582b32c426
Fixed base64_decode variation tests and new base64_encode test. Tested on Windows, Linux and Linux64 bit
2009-01-14 14:38:58 +00:00
Robin Fernandes
ad534b35c1
Fix test parse_url_variation_002.phpt for 64bit platforms.
2008-04-11 14:35:06 +00:00
Robin Fernandes
bcd9a07d6c
Adding some tests for ereg and url functions.
2008-04-11 08:57:17 +00:00