composer/composer — Issue #259: Installer should report incorrect suhosin setting
Author: arendjantetteroo
Created: 2012-01-25 17:11:50+00:00
State: open

Running the installer works fine and installs the composer.phar in the current directory.

Output :
:/tmp$ curl -s http://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer

Composer successfully installed to: /tmp/composer.phar
Use it: php composer.phar
:/tmp$ php composer.phar * NO OUTPUT *
:/tmp$

Running it with php composer.phar doesn't output anything though.

After some searching and debugging, it seemed no phar worked at all because of a standard suhosin setting on Ubuntu.
Adding phar to the executor.include setting fixes this :
suhosin.executor.include.whitelist = phar

It would be nice if the installer could check if suhosin is enabled and if so, if phar was added to it's executor.include whitelist

Expected output :
:/tmp$ curl -s http://getcomposer.org/installer | php
#!/usr/bin/env php
Warning: Suhosin is enabled, you need to add phar to the suhosin whitelist to be able to run Composer

Add phar to suhosin.executor.include.whitelist in your php.ini for the cli.
suhosin.executor.include.whitelist = phar

Composer successfully installed to: /tmp/composer.phar
Use it: php composer.phar