PHP-1245: Split out MongoDBRef::get and MongoCollection::findOne into C functions

Is this called from any other files? If not, should it be static?