mongodb/mongo-php-driver — pull request #251 by derickr (2012-12-14 09:44:07+00:00)
Title: Fixed PHP-635: The second argument to MongoCursor::__construct() always gets converted to a string.

The code just blindly converted it to a string. If you only want to temporarily convert things (like we want here), then you need to use the convert_to_*_ex functions.