summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Fastimage.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/Fastimage.php b/Fastimage.php
index 816995f..0d3b9a6 100644
--- a/Fastimage.php
+++ b/Fastimage.php
@@ -15,7 +15,6 @@ class FastImage
{
private $strpos = 0;
private $str;
- private $uri;
private $type;
private $handle;
@@ -29,7 +28,6 @@ class FastImage
{
if ($this->handle) $this->close();
- $this->uri = $uri;
$this->handle = fopen($uri, 'r');
}
@@ -217,8 +215,7 @@ class FastImage
$result = substr($this->str, $this->strpos, $n);
$this->strpos += $n;
- // we are dealing with bytes here, so force the encoding
- return mb_convert_encoding($result, "8BIT");
+ return $result;
}