Reputation: 1827
I recently installed the PHP Composer dependency manager, however, now when I try to run the command php composer.phar install
it simply outputs ????
. There is a composer.json
file in the same directory, but I can't get it to work.
The contents of my composer.json
:
{
"require": {
"cboden/Ratchet": "0.2.*"
}
}
If I try adding -v
to the command (php composer.phar install -v
) like suggested in the comments, it still says the same thing.
What do I do?
Upvotes: 1
Views: 74
Reputation: 1827
I actually managed to fix this problem with a similar solution to Mantas's below.
In his answer, you just add detect_unicode
, but I managed to get it to work for me with this command:
php -d detect_unicode=Off -d suhosin.executor.include.whitelist=phar composer.phar install
When I installed Composer I also had to put these both in, so I guess you need to whenever you run the file...
Upvotes: 0
Reputation: 2321
php composer.phar diagnose
It's a system sanity check function. It may report your issue.
Upvotes: 1