summaryrefslogtreecommitdiff
path: root/extlib/php-gettext/streams.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-08-18 21:02:46 -0700
committerCraig Andrews <candrews@integralblue.com>2009-08-21 16:01:59 -0400
commit8bca90b8d2804675421464a3db1b447a439a456c (patch)
treea3286408fa2b9b80d09a037c9427fadae12eb36e /extlib/php-gettext/streams.php
parent5c21a371d61b4cd3dd125f2c43aa80c52c9c316d (diff)
Tweak to php-gettext stream reader; initialize local variable before appending data to it to avoid triggering an E_NOTICE message.
Diffstat (limited to 'extlib/php-gettext/streams.php')
-rw-r--r--extlib/php-gettext/streams.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/extlib/php-gettext/streams.php b/extlib/php-gettext/streams.php
index d57aac649..3eafa7482 100644
--- a/extlib/php-gettext/streams.php
+++ b/extlib/php-gettext/streams.php
@@ -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;