mongodb/mongo-php-driver — pull request #259 by jmikola (2013-01-08 19:28:57+00:00)
Title: [PHP-638] Return constant string types in getReadPreference()

See: https://jira.mongodb.org/browse/PHP-638

Replace numeric types with the constant string values and eliminate the irrelevant "type_string" field.

Note: this will pose a BC break for any code that was depending on numeric values in the "type" element, or reading the "type_string" element.