I have used ubuntu 14.04 and use laravel. I have installed nginx with hhvm as below:
$ php -v
HipHop VM 3.14.1 (rel) Compiler: tags/HHVM-3.14.1-0-gd99b370804b7e0234ab794869d1ba1774c848e85 Repo schema: ac0c6851ba5643ce00ae67bbe67c50973efd65d6
I got as above. Then I tried to install composer on my home directory
$ curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading 1.1.3...
Fatal error: Uncaught TypeError: Argument 1 passed to unserialize() must be an instance of string, null given in /tmp/php-wrap-xpYu3V:586
Stack trace:
0 (): unserialize()
1 (): __SystemLib\PharArchiveHandler->parsePhar()
2 (): __SystemLib\PharArchiveHandler->__construct()
3 /tmp/php-wrap-xpYu3V(586): Phar->__construct()
4 /tmp/php-wrap-xpYu3V(55): installComposer()
5 /tmp/php-wrap-xpYu3V(13): process()
6 {main}
I got error like that.
However,
If I chose php7.0, and download composer, it will work fine. however whenever I install hhvm and run it with nginx, It gives like:
$ composer
Fatal error: Uncaught TypeError: Argument 1 passed to unserialize() must be an instance of string, null given in /usr/local/bin/composer:23 Stack trace:
0 (): unserialize()
1 (): __SystemLib\PharArchiveHandler->parsePhar()
2 (): __SystemLib\PharArchiveHandler->__construct()
3 (): Phar->__construct()
4 /usr/local/bin/composer(23): Phar::mapPhar()
5 {main}
Is there any idea?
Thanks,