Whenever I run "hhvm /usr/local/bin/composer update" on my Symfony 2.5 project, I get this error first:
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
Unable to parse file "/home/andy/workspace/symfony/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/../Resources/config/web.xml".
[InvalidArgumentException]
[ERROR 3067] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to parse the XML resource 'file:////home/andy/workspace/symfony/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd'. (in in_memory_buffer - line 8, column 0)
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
then errors for most of my "post-update-cmd" scripts, which are as follow
This issue is not blocking, though : this is a test platform for Symfony2, Behat and Atoum (a Unit Tests framework), on a Jenkins Server. I managed to update my vendors, then run the remaining scripts using my distribution's standard PHP binary, with the following ant configuration :
This relates to https://github.com/facebook/hhvm/issues/3797
I just built hhvm today on a Linux Mint 17.
Whenever I run "hhvm /usr/local/bin/composer update" on my Symfony 2.5 project, I get this error first:
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
Unable to parse file "/home/andy/workspace/symfony/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/../Resources/config/web.xml".
[InvalidArgumentException]
[ERROR 3067] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to parse the XML resource 'file:////home/andy/workspace/symfony/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd'. (in in_memory_buffer - line 8, column 0)
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
then errors for most of my "post-update-cmd" scripts, which are as follow
"post-update-cmd": [ "Incenteev\ParameterHandler\ScriptHandler::buildParameters", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::removeSymfonyStandardFiles" ]
This issue is not blocking, though : this is a test platform for Symfony2, Behat and Atoum (a Unit Tests framework), on a Jenkins Server. I managed to update my vendors, then run the remaining scripts using my distribution's standard PHP binary, with the following ant configuration :
<target name="vendors" description="Update vendors"> <exec executable="/usr/local/bin/hhvm" failonerror="true"> <arg value="/usr/local/bin/composer" /> <arg value="update" /> <arg line="--prefer-dist" /> <arg line="--no-scripts" /> </exec> </target>
<target name="composerPostUpdateCmd" description="Composer's post update scripts, not compatible with hhvm"> <exec executable="/usr/bin/php" failonerror="true"> <arg line="/usr/local/bin/composer run-script post-install-cmd" /> </exec> </target>