From: Brion Vibber Date: Wed, 19 Aug 2009 04:02:46 +0000 (-0700) Subject: Tweak to php-gettext stream reader; initialize local variable before appending data... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8bca90b8d2804675421464a3db1b447a439a456c;p=quix0rs-gnu-social.git Tweak to php-gettext stream reader; initialize local variable before appending data to it to avoid triggering an E_NOTICE message. --- diff --git a/extlib/php-gettext/streams.php b/extlib/php-gettext/streams.php index d57aac6496..3eafa74828 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;