Show
Ignore:
Timestamp:
07/06/06 22:36:44 (3 years ago)
Author:
ryan
Message:

Update to php-gettext 1.0.7+. fixes #1727

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/streams.php

    r2554 r4004  
    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