This repository has been archived by the owner on Feb 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
MongoConnectionException doesn't exists for hhvm #46
Comments
ezruneko
changed the title
Crash with Drupal/MongoDB
MongoConnectionException doesn't exists for hhvm
Sep 9, 2015
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.
The same occurs with the Mongo class (Mongo.php). I need to rename to AMongo.php to extends from MongoClient |
rowillia
pushed a commit
to rowillia/mongofill-hhvm
that referenced
this issue
Sep 12, 2015
I have a fix for this in #47 |
I surmise this would fix my issue: #45 |
@rowillia perfect solution is more elegant that rename base classes. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
https://gist.github.com/layane/1d7887d0ceb94ee207fe
The text was updated successfully, but these errors were encountered: