From:             a at b dot c dot de
Operating system: Irrelevant
PHP version:      5.0.3
PHP Bug Type:     Unknown/Other Function
Bug description:  Are stream names URLs?

Description:
------------
As indicated several times in the manual, the "filenames" that result from
using stream wrappers are to be regarded as URLs, just as http, ftp and
file schemes already are.

However, ALL such wrappers separate the scheme (what the manual refers to
as the "protocol" from the rest of the URL with "://" - an example being
the "var://myvar" in the example of the stream_wrapper_register() page.

This conflicts with RFC3986, the official specification for URIs (of which
URLs are a subclass). The separator is just ":"; the double slash should
only appear if what follows is a hierarchical structure in the sense given
in section 3 of that document.

This is explicitly stated as improper in RFC2718, section 2.1.2 (which
refers to the previous URI standard, RFC2396).

If these streams are supposed to be URLs, then the above example from the
manual should read "var:myvar".


-- 
Edit bug report at http://bugs.php.net/?id=32535&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32535&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32535&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32535&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32535&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32535&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32535&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32535&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32535&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32535&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32535&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32535&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32535&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32535&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32535&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32535&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32535&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32535&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32535&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32535&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32535&r=mysqlcfg

Reply via email to