[wp-trac] [WordPress Trac] #14207: streams.php, POMO_FileReader $length parameter of fread

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 28 03:10:51 UTC 2010


#14207: streams.php, POMO_FileReader $length parameter of fread
-----------------------------------------+-----------------------------
 Reporter:  bueltge                      |       Owner:  nbachiyski
     Type:  defect (bug)                 |      Status:  assigned
 Priority:  normal                       |   Milestone:  Future Release
Component:  I18N                         |     Version:  3.0
 Severity:  major                        |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Still don't quite understand the connection between intranet and reading
 .mo files.

 However I guess the condition in the patch should be inverted:
 {{{
 if ( !empty($bytes) )
         return fread($this->_f, $bytes);
 else
         return false;
 }}}
 Uploaded new patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14207#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list