Commit 8bca90b8 authored by Brion Vibber's avatar Brion Vibber Committed by Craig Andrews

Tweak to php-gettext stream reader; initialize local variable before appending...

Tweak to php-gettext stream reader; initialize local variable before appending data to it to avoid triggering an E_NOTICE message.
parent 5c21a371
......@@ -108,6 +108,7 @@ class FileReader {
// PHP 5.1.1 does not read more than 8192 bytes in one fread()
// the discussions at PHP Bugs suggest it's the intended behaviour
$data = '';
while ($bytes > 0) {
$chunk = fread($this->_fd, $bytes);
$data .= $chunk;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment