summaryrefslogtreecommitdiff
path: root/ext/phar/shortarc.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/shortarc.php')
-rw-r--r--ext/phar/shortarc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/phar/shortarc.php b/ext/phar/shortarc.php
index 748afeda2e..1bf3baa8aa 100644
--- a/ext/phar/shortarc.php
+++ b/ext/phar/shortarc.php
@@ -114,15 +114,15 @@ class Extract_Phar
{
$fp = fopen(__FILE__, 'rb');
fseek($fp, self::LEN);
- $L = unpack('V', $a = fread($fp, 4));
- $m = '';
+ $L = unpack('V', $a = (binary)fread($fp, 4));
+ $m = (binary)'';
do {
$read = 8192;
if ($L[1] - strlen($m) < 8192) {
$read = $L[1] - strlen($m);
}
- $last = fread($fp, $read);
+ $last = (binary)fread($fp, $read);
$m .= $last;
} while (strlen($last) && strlen($m) < $L[1]);