Regression test for Bug #20304
Fixed #20304: file:// URI gets crippled

Net_URL2 internally does not differ between an unset and an empty
authority.

This is an issue for URIs that have an implicit federated non-empty
default authority by their scheme as this is the case for "file" URI
scheme.

To get Net_URL2 still working while not changing all inner guts, a small
fix has been made to Net_URL2::getURL handling the special case for
file:// URI authorities.

This issue has been introduced in 7e28674:

    Fixed #20159: Authority not terminated by slash

ca. 7 months ago.
Prepared 2.0.6
Deprecating accessing fields via magic methods

Accessing fields via magic methods __get and __set has been
deprecated.

The fields have been declared public and are unset in the
constructor so __set and __get can still kick while it is possible
to use phpdocs @deperecated tags with the field definitions.

Additionally trigger_error is used to create an error message
(either E_USER_DEPRECATED or E_USER_WARNING depending on PHP
version).

The test for this kind of access has been changed to ignore
these intended errors.

This change should be backwards compatible as the fields are
still accessible.

Additionally the example.php was fairly outdated and notes
have been added about the status of the field in use. The
correct getter has been shown where applicable.

Changelog:

* Deprecating accessing fields via magic methods:

  - authority
  - fragment
  - host
  - normalizedurl
  - password
  - path
  - port
  - query
  - queryvariables
  - scheme
  - url
  - user
  - userinfo

  Use appropriate getters and setters instead, for
  example: $url->getAuthority(); instead of: $url->authority