--TEST-- PHPC-974: Converting JSON to BSON to PHP introduces gaps in array indexes --FILE-- ===DONE=== --EXPECTF-- object(stdClass)#%d (%d) { ["myArray"]=> array(1) { [0]=> object(MongoDB\BSON\ObjectId)#%d (%d) { ["oid"]=> string(24) "201700601301102102609060" } } } object(stdClass)#%d (%d) { ["0"]=> int(1) ["1"]=> int(2) ["2"]=> int(3) ["3"]=> object(MongoDB\BSON\UTCDateTime)#%d (%d) { ["milliseconds"]=> string(13) "1497352886906" } } object(stdClass)#%d (%d) { ["0"]=> object(MongoDB\BSON\ObjectId)#%d (%d) { ["oid"]=> string(24) "55f2b3f1f657b3fa97c9c0a2" } ["1"]=> object(MongoDB\BSON\UTCDateTime)#%d (%d) { ["milliseconds"]=> string(13) "1497352886906" } } ===DONE===