Make WordPress Core


Ignore:
Timestamp:
07/06/2006 10:35:59 PM (18 years ago)
Author:
ryan
Message:

Update to php-gettext 1.0.7+. fixes #1727

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/streams.php

    r2554 r4003  
    106106    if ($bytes) {
    107107      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      }
    109116      $this->_pos = ftell($this->_fd);
    110117     
Note: See TracChangeset for help on using the changeset viewer.