compatible with php_mongo v1.4.1