Background: Using my own clone (https://github.com/outofcontrol/Laravel4-Vagrant/tree/vmware64) I can bring up--without error--a full functioning Laravel VM with VirtualBox. Using a slightly modified version of the clone (https://github.com/outofcontrol/Laravel4-Vagrant/tree/vmware64 chaining only VM Box in the vagrant file and add COMPOSER_HOME=/home/vagrant to /etc/environment as that was a warning originally) I'm getting a strange error.
The VMware box downloads, installs and is accessible via 'vagrant ssh'. All the modules run up-to laravel_app. Whether I manually run "sudo composer update" directly from the box, or whether Vagrant/Puppet runs it, the following error occurs:
$ sudo composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Generating autoload files
PHP Parse error: syntax error, unexpected end of file in /var/www/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 954
PHP Stack trace:
PHP 1. {main}() /var/www/artisan:0
PHP 2. require() /var/www/artisan:16
PHP 3. require() /var/www/bootstrap/autoload.php:17
PHP 4. ComposerAutoloaderInitc631e523d6ab3652395fbd23aa1064ba::getLoader() /var/www/vendor/autoload.php:7
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Parse error: syntax error, unexpected end of file in /var/www/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 954
PHP Stack trace:
PHP 1. {main}() /var/www/artisan:0
PHP 2. require() /var/www/artisan:16
PHP 3. require() /var/www/bootstrap/autoload.php:17
PHP 4. ComposerAutoloaderInitc631e523d6ab3652395fbd23aa1064ba::getLoader() /var/www/vendor/autoload.php:7
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
I've tried for the past few hours several possible fixes, including setting chmod 777 on /var/www, restarting in case of a temporary issue, manually running apt-get update, running apt-get upgrade, lots and lots of googling.
I've verified that the Helper.php file is identical on the working VirtualBox VM and VMware VM.
Software versions on Virtualbox:
PHP 5.5.5-1+debphp.org~precise+2
Puppet v2.7.19
Software versions on VMware:
PHP 5.5.5-1+debphp.org~precise+2
Puppet v3.0.2
Originally I thought a different version of puppet might cause the issues, but then manually running gets the same errors, I've gotten a bit lost. Would anyone have a suggestion as to what I might try next?
EDIT: Originally I assumed the issue was related to Vagrant and|or Puppet. Further tests show that just mounting the VM machine in VMware and then manually installing and trying to install Laravel produces the same errors.