Changeset 4004 for branches/2.0/wp-includes/streams.php
- Timestamp:
- 07/06/06 22:36:44 (3 years ago)
- Files:
-
- branches/2.0/wp-includes/streams.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.0/wp-includes/streams.php
r2554 r4004 106 106 if ($bytes) { 107 107 fseek($this->_fd, $this->_pos); 108 $data = fread($this->_fd, $bytes); 108 109 // PHP 5.1.1 does not read more than 8192 bytes in one fread() 110 // the discussions at PHP Bugs suggest it's the intended behaviour 111 while ($bytes > 0) { 112 $chunk = fread($this->_fd, $bytes); 113 $data .= $chunk; 114 $bytes -= strlen($chunk); 115 } 109 116 $this->_pos = ftell($this->_fd); 110 117
