ID:               43510
 User updated by:  dz at bitxtender dot com
 Reported By:      dz at bitxtender dot com
 Status:           Open
 Bug Type:         Streams related
 Operating System: Mac OS X 10.5.1
 PHP Version:      5.2.5
 New Comment:

Description:
------------
When an fopen() is done on an HTTP URL with mode "r", the 
stream_get_meta_data() result returns "r+"

Reproduce code:
---------------
$meta = stream_get_meta_data(fopen('http://www.google.com/', 'r'));
var_dump($meta['mode']);

Expected result:
----------------
string 'r' (length=1)

Actual result:
--------------
string 'r+' (length=2)


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

[2007-12-06 02:18:22] dz at bitxtender dot com

Description:
------------
When an fopen() is done on an HTTP URL with mode "r", the 
stream_get_meta_data() result returns "r+"

Reproduce code:
---------------
$f = fopen('http://www.google.com/', 'r');
var_dump(stream_get_meta_data($f['mode']));



Expected result:
----------------
string 'r' (length=1)

Actual result:
--------------
string 'r+' (length=2)


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


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

Reply via email to