fix for MongoDB PHP driver >= 1.3