[wp-trac] [WordPress Trac] #14207: streams.php, POMO_FileReader $length parameter of fread
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 6 09:30:48 UTC 2010
#14207: streams.php, POMO_FileReader $length parameter of fread
----------------------------+-----------------------------------------------
Reporter: bueltge | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.0
Severity: critical | Keywords: has-patch
----------------------------+-----------------------------------------------
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: <http://core.trac.wordpress.org/ticket/14207>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list