#20308 [NEW]: parse_url does not understand the Mailto scheme
| From: | Otto dot Stolz at uni-konstanz dot de | Date: | Fri, 08 Nov 2002 09:56:29 +0000 |
| Subject: | #20308 [NEW]: parse_url does not understand the Mailto scheme | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-24331@lists.php.net to get a copy of this message | ||
From: Otto.Stolz@uni-konstanz.de
Operating system: SunOS
PHP version: 4.2.2
PHP Bug Type: URL related
Bug description: parse_url does not understand the Mailto scheme
parse_url('mailto:Otto.Stolz@uni-konstanz.de')
yields:
array( ['scheme'] => 'mailto'
['path'] => 'Otto.Stolz@uni-konstanz.de'
)
According
to <http://www.zvon.org/tmRFC/RFC2368/Output/chapter2.html>
and <http://www.zvon.org/tmRFC/RFC2822/Output/chapter3.html#sub4>,
it should rather yield:
array( ['scheme'] => 'mailto'
['host'] => 'uni-konstanz.de'
['user'] => 'Otto.Stolz'
)
A test page can be found at
<http://www.rz.uni-konstanz.de/Antivirus/tests/parse_url.php>,
the pertinent PHP source at
<http://www.rz.uni-konstanz.de/Antivirus/tests/parse_url.txt>.
--
Edit bug report at http://bugs.php.net/?id=20308&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20308&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20308&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20308&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20308&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20308&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20308&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20308&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20308&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20308&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20308&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20308&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20308&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20308&r=isapi