Last modified: 2014-08-19 08:52:11 UTC
Fatal error: Unexpected object type stdClass. in /srv/vagrant/mediawiki/extensions/PhpTagsFunctions/includes/PhpTagsFunc.php on line 20 Under hhvm/hiphop; tests with php5 didn't go as far as needed to tell whether it's hhvm-specific. (Is the dot a typo?)
I have all the tests pass successfully. Can you recheck it for the current version? I checked with PhpTag v 3.4.2 and PhpTags Functions v 3.2.3 in HHVM on Vagrant.
oops. I had the wrong tests. A lot of tests in PhpTags Functions under HHVM isn't passing. I'll fix it.
For the correct operation is required to describe number and type of parameters for each function. Because the extension contains a lot of functions it will take a lot of time which I do not have yet. As a temporary way out I decided not to validate the data that the users pass to the functions and catch errors using the function set_error_handler. The problem is the error handler in HHVM is too different of Zend. And the main problem is that the wrong expression > php -r 'echo date_format(5, "Y-m-d");' Zend returns: PHP Warning: date_format() expects parameter 1 to be DateTime, integer given in Command line code on line 1 And it can be continued. But HHVM returns: Fatal error: Unexpected object type stdClass. in /tmp/php-wrap-dFLaAw on line 2 And it can not be continued. I will solve this problem, but it will not be very soon. Thanks for the bug report.