Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser error on line 238 #1

Closed
witchi opened this issue Nov 4, 2013 · 1 comment
Closed

Parser error on line 238 #1

witchi opened this issue Nov 4, 2013 · 1 comment
Milestone

Comments

@witchi
Copy link
Contributor

witchi commented Nov 4, 2013

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é

@witchi
Copy link
Contributor Author

witchi commented Nov 4, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants