Skip to content

Error in GlobalConfig with hhvm #225

@Yogu

Description

@Yogu

Running phpdox with hhvm 3.7.0 causes the following exception:

 [exec] PHP Version: 5.6.99-hhvm (Linux)
 [exec] PHPDox Version: 841d7fd-dirty
 [exec] ErrorException: E_WARNING 
 [exec] Location: /var/lib/jenkins/workspace/project/vendor/theseer/phpdox/src/config/GlobalConfig.php (Line 85)
 [exec] 
 [exec] DOMElement::getAttribute() expects exactly 1 parameter, 2 given
 [exec] 
 [exec] #0 /var/lib/jenkins/workspace/project/vendor/theseer/phpdox/src/config/GlobalConfig.php(85): DOMElement->getAttribute()
 [exec] #1 /var/lib/jenkins/workspace/project/vendor/theseer/phpdox/src/CLI.php(96): TheSeer\phpDox\GlobalConfig->isSilentMode()
 [exec] #2 /var/lib/jenkins/workspace/project/vendor/theseer/phpdox/composer/bin/phpdox(30): TheSeer\phpDox\CLI->run()

The xpath evaluate function somehow returns a DOMElement instead of a fDOMElement. It's probably either a bug in hhvm or in fDOMDocument.

This workaround might be relevant, but I think the underlying bug has been fixed in hhvm.

With zend's php5, it works fine.

If you need more information, e.g. configuration files, I'll gladly provide them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions