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

WordPress Trac noreply at wordpress.org
Sat Oct 11 01:02:49 UTC 2014


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

 * keywords:  has-patch dev-feedback => has-patch reporter-feedback
 * milestone:  Future Release =>


Old description:

> the fread function run with an error, when you have the length-paramter
> ist 0. This is possible on use WP in local engines and intranet.
> Small changes on the function: read in class POMO_FileReader
>
>         function read($bytes) {
>                 if ( isset($bytes) && ( 0 > $bytes ) )
>                         return fread($this->_f, $bytes);
>                 else
>                         return;
>         }

New description:

 the fread function run with an error, when you have the length-paramter
 ist 0. This is possible on use WP in local engines and intranet.
 Small changes on the function: read in class POMO_FileReader
 {{{
         function read($bytes) {
                 if ( isset($bytes) && ( 0 > $bytes ) )
                         return fread($this->_f, $bytes);
                 else
                         return;
         }
 }}}

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14207#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list