ID:               32563
 Updated by:       [EMAIL PROTECTED]
 Reported By:      a at b dot c dot de
-Status:           Open
+Status:           Assigned
-Bug Type:         Unknown/Other Function
+Bug Type:         Filesystem function related
-Operating System: 
+Operating System: *
-PHP Version:      5.0.3
+PHP Version:      5.*
-Assigned To:      
+Assigned To:      pollita
 New Comment:

Sara, can you please look into this?



Previous Comments:
------------------------------------------------------------------------

[2005-04-04 08:03:08] a at b dot c dot de

Description:
------------
URL schemes may not contain ":" characters (as this character is used
as the scheme delimiter). stream_wrapper_register() will allow
"schemes" containing ":" to be registered, even though the URLs that
result from using them are invalid.


Reproduce code:
---------------
<?php
class foo_class{
function stream_open(){return true;}
}
stream_wrapper_register('tick:tock', 'foo_class');
print_r(stream_get_wrappers());
$fp=fopen('tick:tock:thingy','w');
?>

Expected result:
----------------
Warning: stream_wrapper_register(tick:tock): Invalid argument ... on
line 5

Array
(
    [0] => php
    [1] => file
    [2] => http
    [3] => ftp
    [4] => compress.zlib
)


Actual result:
--------------
Array
(
    [0] => php
    [1] => file
    [2] => http
    [3] => ftp
    [4] => compress.zlib
    [5] => tick:tock
)

Warning: fopen(tick:tock:thingy): failed to open stream: Invalid
argument ... on line 7


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32563&edit=1

Reply via email to