--TEST-- PHPC-672: ObjectId constructor should not modify string argument's memory --FILE-- ===DONE=== --EXPECTF-- object(MongoDB\BSON\ObjectId)#%d (%d) { ["oid"]=> string(24) "56925b7330616224d0000001" } string(24) "56925B7330616224D0000001" OK: Got MongoDB\Driver\Exception\InvalidArgumentException string(7) "T123456" ===DONE===