Fixed PHP-1267: Windows Build Failure
Rename variable to be consistent with its friends
Reduce the size of the buffer, to_read*2 seems like a good fit

Also remove unnecessary MIN() checks
PHP-1267: Fix header includes
Merge pull request #758 from bjori/windows-buildfix

Fix build on windows

* bjori/windows-buildfix:
  PHP-1267: Fix header includes
  Reduce the size of the buffer, to_read*2 seems like a good fit
  Rename variable to be consistent with its friends
  Fixed PHP-1267: Windows Build Failure
Use MongoBinData subtype constant in lieu of hard-coded value
PHP-1269: Exception if MongoBinData::UUID_RFC4122 has invalid size

RFC4122 UUIDs (subtype 4) should always be 16 bytes. Don't validate older UUIDs (subtype 3). Raise exceptions during MongoBinData construction and BSON en/decoding.

As the tests illustrate, it's still possible to create an invalid MongoBinData state by altering the binary string with reflection (overcoming the read-only property restrictions). In this case, we'll rely on BSON encoding for validation.
Merge pull request #762
BUMP 1.6.0RC2
Back to -dev.