PHP-999: Fix RP support for inline mapReduce
PHP-1000: Allow "mapreduce" and "mapReduce" command names in RP check

"mapReduce" is the canonical command name, and the server allows either to be used.
Use canonical mapReduce command name in PHP-535 test

Since tests may frequently be used as usage examples, it'd be helpful if we stuck to using the proper command name here unless we're explicitly testing for another case (e.g. PHP-1000 and the PHP-999 test case).
Merge pull request #598
Merge branch 'v1.4'
PHP-995: Improve JSON detection (remi@php.net)
Merge pull request #600 from bjori/PHP-995-json-detection

PHP-995: Improve JSON detection (remi@php.net)

* bjori/PHP-995-json-detection:
  PHP-995: Improve JSON detection (remi@php.net)
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