note 26611 deleted from function.parse-url by maxim
| From: | maxim@php.net | Date: | Wed, 06 Nov 2002 17:40:38 +0000 |
| Subject: | note 26611 deleted from function.parse-url by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39055@lists.php.net to get a copy of this message | ||
Mailto URLs: bug or feature?
Apparently, parse_url does not properly parse
URLs complying with section 3.5, "MAILTO" of
RFC 1738 <http://www.ietf.org/rfc/rfc1738.txt>.
E.g.
parse_url('mailto:jdoe@example.org')
yields
array( 'scheme' => 'mailto'
, 'path' => 'jdoe@example.org'
)
whilst, on account of the PHP manual, I had expected:
array( 'scheme' => 'mailto'
, 'user' => 'jdoe'
, 'host' => 'example.org'
)