#41390 [Opn->Bgs]: stream_wrapper_register() and underscore in $protocol
| From: | scottmac@php.net | Date: | Tue, 15 May 2007 03:12:41 +0000 |
| Subject: | #41390 [Opn->Bgs]: stream_wrapper_register() and underscore in $protocol | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112638@lists.php.net to get a copy of this message | ||
ID: 41390
Updated by: scottmac@php.net
Reported By: wiesemann@php.net
-Status: Open
+Status: Bogus
Bug Type: Streams related
Operating System: WinXP SP2
PHP Version: 5.2.2
New Comment:
A protocol has to be A-Z 0-9 so an underscore isn't valid and is the
cause of the error.
See php_register_url_stream_wrapper in main/streams/streams.c
Previous Comments:
------------------------------------------------------------------------
[2007-05-14 21:39:33] wiesemann@php.net
Description:
------------
When I use underscores in $protocol parameter for
stream_wrapper_register(), I get an error telling me that PHP was
"Unable to register wrapper class ...". In main/streams/userspace. this
error is thrown and one can find the comment "/* Should never happen */"
above it.
Either the comment is wrong or there should be a check for the validity
of the protocal name.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41390&edit=1