From:             [EMAIL PROTECTED]
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'] => '[EMAIL PROTECTED]'
      )

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

Reply via email to