Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HHVM 3.3.0-dev - [ERROR 3067] Failed to parse the XML resource #3751

Closed
Macsch15 opened this issue Sep 14, 2014 · 8 comments
Closed

HHVM 3.3.0-dev - [ERROR 3067] Failed to parse the XML resource #3751

Macsch15 opened this issue Sep 14, 2014 · 8 comments

Comments

@Macsch15
Copy link

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?

@paulbiss
Copy link
Contributor

/cc @fredemmott

@fredemmott
Copy link
Contributor

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

@seeruk
Copy link

seeruk commented Sep 22, 2014

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?

@ptarjan
Copy link
Contributor

ptarjan commented Sep 22, 2014

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

hhvm.libxml.ext_entity_whitelist = file,http

@seeruk
Copy link

seeruk commented Sep 23, 2014

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

@ptarjan
Copy link
Contributor

ptarjan commented Sep 23, 2014

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

@baptistedonaux
Copy link

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

@jrborbars
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants