mongodb/mongo-php-driver — pull request #718 by derickr (2014-07-21 14:16:20+00:00)
Title: Fixed PHP-1105: long_as_object = 0 no effect.

This is not the cleanest patch in the world. But I think, that until PHP has 64-bit support *everywhere* we can not do better than this patch.

What it basically does is make sure that if we detect the result is *not* a correct command cursor result document (ie, "cursor":"_id") or an parallelCollectionScan return ("cursors" : array : "cursor" : "id"), we turn off the flag that forces the creating of a MongoInt64 object.