Changeset 4003 for trunk/wp-includes/streams.php
- Timestamp:
- 07/06/2006 10:35:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/streams.php
r2554 r4003 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
Note: See TracChangeset
for help on using the changeset viewer.