To install vendors for Symfony 2.1.0 I’m running php composer.phar install but it gives error during Generating autoload files.
Error is:
Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in on line 26
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap handling the post-install-cmd event terminated with an exception
It works fine on localhost, but not on server. Not sure what the problem is with the php set up?
EDIT:
PHP is 5.3.13. I checked that beforehand.
I ran app/check.php and everything is OK, except warning for accelerator.
I could successfully install composer as well.
The composer.json has the same values as the 2.1 symfony-standard branch:
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
The host seems to use php5.2 by standard. sigh.
I made an alias in the .bash_profile to the php53 executable previously.
This did not get return with ScriptHandler::getPhp as it returned the default executable (5.2). I didn’t pick it up as I’m used to the T_FUNCTION error being namespacing not recognised.
I could change my .bash_profile to use PATH instead of alias.
Seems resolved.