This bug has simple workaround. Just change getFile function in IT.php
to fread in 8192 byte chunks.
something like:
define(MAX_FREAD_SIZE, 8192);
$fsize = filesize($filename);
$content = "";
[...stripped...btw: that part with comparing $fsize < 1 is pretty dumb,
why they open file and then close it again? it should be moved before
fopen...]
while ($fsize > 0) {
$read_size = ($fsize>MAX_FREAD_SIZE)?MAX_FREAD_SIZE:$fsize;
$content = $content . fread($fh, $read_size);
$fsize = $fsize - $read_size;
};
-- cut here --
Marking this bug as invalid for dapper.
** Changed in: php5 (Ubuntu)
Status: Incomplete => Invalid
--
dapper - php5 - 5.1.2 bug in fread
https://bugs.launchpad.net/bugs/114825
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs