-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Description
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.