https://github.com/mongodb/mongo-php-driver/pull/326/files