summaryrefslogtreecommitdiff
path: root/ext/phar/shortarc.php
diff options
context:
space:
mode:
authorSteph Fox <sfox@php.net>2008-05-19 19:05:42 +0000
committerSteph Fox <sfox@php.net>2008-05-19 19:05:42 +0000
commitf08aea109bc0704bae93f35b7b94e1021c669523 (patch)
tree5d97717e9dd83f748075dd5be64173ca3e02df04 /ext/phar/shortarc.php
parent69deb7bc425e422ca4190cacd59c5c0336672788 (diff)
downloadphp-git-f08aea109bc0704bae93f35b7b94e1021c669523.tar.gz
- IS_UNICODE checks and conversions
- stub and creation file updates - far too many test updates to think about
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]);