]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Tweak to php-gettext stream reader; initialize local variable before appending data...
authorBrion Vibber <brion@pobox.com>
Wed, 19 Aug 2009 04:02:46 +0000 (21:02 -0700)
committerCraig Andrews <candrews@integralblue.com>
Fri, 21 Aug 2009 20:01:59 +0000 (16:01 -0400)
extlib/php-gettext/streams.php

index d57aac6496b2b1da2419cff07f2d04de9455bd56..3eafa7482828303b6c6713878e1d28c7d45a7381 100644 (file)
@@ -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;