Open ezruneko opened 9 years ago
Solved:
I rename in MongoFill the file MongoException.php to AMongoException.php and recompile it. So the problem is the order to merge all php files in the ext_mongo.php.
MongoException must be parsed before all inherited classes.
//Test: http://closure.es/mongo.php
HHVM version: 5.6.99-hhvm
MongoFill version: 1.4.5
-----------------------------------------
MongoClient: true
MongoConnectionException: true
MongoException: true
The same occurs with the Mongo class (Mongo.php). I need to rename to AMongo.php to extends from MongoClient
I have a fix for this in https://github.com/mongofill/mongofill-hhvm/pull/47
I surmise this would fix my issue: https://github.com/mongofill/mongofill-hhvm/issues/45
@rowillia perfect solution is more elegant that rename base classes.
I installed on Ubuntu 14.04LTS MongoDB module in drupal:
And crash in line 58 in mongo.module:
The snippet code:
But when i try a simple example like:
Any error is reported in the hhvm/error.log. Bug is generated when hhvm compile the php file because if i add a print_r($host) before $mongo = new MongoClient($host, $options); don't show my print_r()
Another test
Live version: http://closure.es/mongo.php
Updated:
And seems that hhvm dont find the MongoConnectionException class.