PHP-993: Merge return array of individual batches into one array
Fix zts build
Attempt#2 to modify the batch statistics according to the spec
Simplify free()ing logic
New test
Convert empty batches into a NOOP
CS as per PR comments
Add space after "switch" and "while" before "(", as per PR review

Fix it everywhere while I am at it
Merge pull request #593 from bjori/PHP-993-merge-error-batches

PHP-993: Merge return array of individual batches into one array

* bjori/PHP-993-merge-error-batches:
  Add space after "switch" and "while" before "(", as per PR review
  CS as per PR comments
  Convert empty batches into a NOOP
  New test
  Simplify free()ing logic
  Attempt#2 to modify the batch statistics according to the spec
  Fix zts build
  PHP-993: Merge return array of individual batches into one array
Order couple of function more logicly, marking them static & add comment
Add stream-context support for listening to batch shipments
WS as per cs review
Merge pull request #599 from bjori/bulk-tweaks

Add stream-context support for listening to batch shipments

* bjori/bulk-tweaks:
  WS as per cs review
  Add stream-context support for listening to batch shipments
  Order couple of function more logicly, marking them static & add comment
Remove shadow declaration warnings for "index" variables

Use more specific variable names for each "index".
Merge pull request #602
Do not use shard cluster host in standalone tests
Merge pull request #603
PHP-407: Default MongoBinData to type 0 and remove E_DEPRECATED notice

This removes using deprecated type 2 as the default, and also does away with the deprecation notice when the constructor's type argument was not specified (introduced by d9ed9c49f176e0c30eacaed002c8b1997464b9dc in 1.2.11).

The bug00407.phpt test is made redundant by changes to mongobindata-001.phpt and has been removed.
PHP-407: Add PHP_MONGO_ prefix to binary data type constants
Merge pull request #601