Hhvm: HHVM 3.3.0-dev - [ERROR 3067] Failed to parse the XML resource

Created on 14 Sep 2014  路  8Comments  路  Source: facebook/hhvm

Hello,
I use Translations from Symfony 2 and xliff format for resource, but HHVM 3.3.0-dev (hhvm-nightly) throws errors in tests:

[ERROR 3067] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to parse the XML resource 'file:////home/travis/build/Macsch15/Tricolore/library/Symfony/Component/Translation/Loader/schema/dic/xliff-core/xml.xsd'. (in in_memory_buffer - line 33, column 0)

https://travis-ci.org/Macsch15/Tricolore/jobs/35261477

On PHP 5.5, 5.6 and HHVM 3.2.0 works fine.

It's HHVM fault or... maybe Symfony?

framework parity php5 incompatibility

Most helpful comment

@SeerUK in /etc/hhvm/php.ini put

hhvm.libxml.ext_entity_whitelist = file,http

All 8 comments

/cc @fredemmott

This is disabled by default as it's a security issue; this is documented (including how to re-enable it) here: https://github.com/facebook/hhvm/blob/master/hphp/doc/inconsistencies#L145

After following the instructions on how to re-enable the feature, I'm still getting this issue. What exactly would I have to put in to read from http and file protocols?

@SeerUK in /etc/hhvm/php.ini put

hhvm.libxml.ext_entity_whitelist = file,http

Does this also work with console applications using HHVM? See #3797

Yes, /etc/hhvm/php.ini is read in console invocations

I have the same problem with HHVM 3.4. The fix of @SeerUK works for me ! Thanks

Yes. HHVM 3.4.2 in arch linux and the problem has gone! Thanks! The fix of @SeerUK works for me too!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simonwelsh picture simonwelsh  路  6Comments

tslettebo picture tslettebo  路  5Comments

zkiiito picture zkiiito  路  7Comments

fredemmott picture fredemmott  路  3Comments

karek314 picture karek314  路  6Comments