ID:               30028
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Network related
 Operating System: n/a
 PHP Version:      5CVS-2004-09-08 (dev)
 New Comment:

Fixed by Sara.


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

[2004-09-08 18:25:55] [EMAIL PROTECTED]

Description:
------------
It seems that stream_get_contents() isn't respecting the second
paramether, limit.
I think this only happen for http wrappers.

Reproduce code:
---------------
<?
$fp = fopen('http://www.php.net/', 'r');

echo strlen(stream_get_contents($fp, 50));

fclose($fp);

?>

Expected result:
----------------
50

Actual result:
--------------
30094


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


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

Reply via email to