McNetic/PHPZipStreamer

Parser error on line 238

witchi opened this issue · 1 comments

Hi,

I try to use your ZipStreamer with OwnCloud. I copied the ZipStreamer.php and the lib/files.php (Owncloud) on my webserver. If I download a file (or multiple files) I will get a:

PHP Parse error: syntax error, unexpected '[', expecting ')' in /srv/www/htdocs/owncloud/3rdparty/ZipStreamer/ZipStreamer.php on line 238

Can you check that?
Thanks
André

I have fixed it with an explicitly assignment:

$binary = unpack('N', hash_final($hashCtx, true));
return array ($dataLength, $gzLength, $binary[1]);

I use PHP 5.3.17, maybe it is related to the PHP version.