PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_URL2

Class for parsing and handling URL.

Download latest release 2.2.3 (there might be newer Composer installable version)

License: BSD-3-Clause

Description

Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL generation, and resolving of
relative URLs.

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#4542ClosedReq2005-06-07add a new api to manage anchor
#6470ClosedBug2006-01-11Path is not properly encoded
#6531ClosedReq2006-01-19add "resolve path" option to getURL method
#7538Wont fixReq2006-05-01URLs without "http" confuse Net_URL
#8633ClosedReq2006-09-04Add multple query strings
#11574ClosedBug0.1.02007-07-09Follow RFC 3986 closely
#13819ClosedBug0.1.02008-05-02host is default 'localhost'
#14178BogusBug0.1.02008-06-18resolvePath Problems
#14289ClosedReq0.2.02008-07-03Member variables should be protected not private
#14399ClosedBug0.2.02008-07-24Multiple bugs in Net_URL2
#14735ClosedReq0.2.02008-10-03Querystring values are not urlencoded
#14820ClosedBugCVS2008-10-18Call to undefined method Net_URL2::addQueryString() (unit tests)
#15367ClosedReq0.2.02008-12-20Support RFC 3986 with respect to urlencoding
#15546ClosedReq0.2.02009-01-07Implement __toString() instead of / as an alias for getUrl()
#16651ClosedBug0.3.02009-09-28Allow empty port number
#16653ClosedReq0.3.02009-09-28Don't make OPTION_SEPARATOR_INPUT default to arg_separator.input
#16674ClosedBug0.3.02009-10-03Options are ignored for already added query variables
#16854BogusBug0.3.02009-11-30invalid package.xml
#17036ClosedBug0.3.12010-01-26Problem with parsed query string
#17086BogusBug0.3.12010-02-11URLs with urlencoding break Query Variables when runing unsetQueryVariable
#17087ClosedBug0.3.12010-02-11setOption() function is gone
#17166ClosedReq0.3.12010-02-26Fluent interface
#17167ClosedReq0.3.12010-02-26Refactor __construct
#18267ClosedBugSVN2011-02-12setQueryVariables() fails to encode array values
#18917ClosedBug1.0.02011-10-20URL2.php moved into ./Net/Net/
#18921ClosedBug2.0.02011-10-21package2.xml misses replace tasks
#19176ClosedBug2.0.02011-12-31resolve() does not merge the path if the base path is empty
#19315ClosedBugSVN2012-03-04removeDotSegments("0") not working
#19684ClosedReq2.0.22012-10-30Redirects containing spaces do not work
#20013ClosedBug2.0.02013-07-18getNormalizedURL() adds leading "@" chars in the Authority
#20016ClosedBugSVN2013-07-21Wrong data in 6d4f4dd "Package.xml preparation."
#20156ClosedBug2.0.22013-12-27setAuthority() flaw with '0' as host
#20157ClosedBug2.0.22013-12-27normalize() flaw with '0' as path
#20158ClosedBug2.0.22013-12-28Fragment-only references are not resolved to non-absolute base URI
#20159ClosedBug2.0.22013-12-28Authority not terminated by slash
#20161ClosedBug2.0.32013-12-30URLs with "0" as host fail to normalize with empty path
#20304ClosedBug2.0.52014-06-21Using Net_URL2 for a file:// URI cripples the URI.
#20385ClosedBugSVN2014-09-04Incorrect normalization of userinfo
#20399ClosedBug2.0.62014-09-07Setting userinfo to FALSE not transparent
#20418ClosedBug2.0.72014-10-02Incorrect normalization of URI with missing authority
#20420ClosedBug2.0.72014-10-02Inconsistent setAuthority and getAuthority
#20421Wont fixBug2.0.72014-10-02Reject invalid path
#20423ClosedBug2.0.72014-10-06URI with IPv6 or IPvFuture not parsed
#20425OpenBug2.0.92014-10-09Incomplete percent-encoding of userinfo, path and query
#20427ClosedReq2.0.102014-10-15Option to not add numeric array keys in URL
#20433ClosedDoc2.1.02014-10-24Please, don't deliver outdated license file in sources
#20473ClosedBug2.1.02014-12-27Normalize query and fragment borken
#20932ClosedBugSVN2015-08-03composer.json is missing include-path section
#21013BogusBugUnknown2016-01-03problem with two dots without trailing slash
#21104BogusReq2.1.22016-08-27support urls beginning with //
#21153OpenBug2.1.22016-12-09When OPTION_ENCODE_KEYS is set to true, some brackets ([ and ]) arent' encoded
#28649ClosedBugSVN2024-08-30PHP 8.4 compatybility bug
#28662ClosedReq2.1.22024-11-25Minimum supported PHP version?
#29032FeedbackReq2025-03-07Release with PHP 8.4 support