note 26611 added to function.parse-url
| From: | Otto dot Stolz at uni-konstanz dot de | Date: | Wed, 06 Nov 2002 17:27:59 +0000 |
| Subject: | note 26611 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39054@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'
)
--
http://www.php.net/manual/en/function.parse-url.php
http://master.php.net/manage/user-notes.php?action=edit+26611
http://master.php.net/manage/user-notes.php?action=delete+26611
http://master.php.net/manage/user-notes.php?action=reject+26611