Fixed case part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrectly")
Implemented FR #65917 (getallheaders() is not supported by the built-in...)

- Implemented apache_request_headers() and getallheaders() alias in CLI server
- Implemented apache_response_headers() in CLI server using FastCGI code

Conflicts:
	NEWS
	UPGRADING
Rewrote test using tcp instead of http:// stream
Removed UPGRADING note

Conflicts:
	UPGRADING
Merge branch 'JSONCaseFix' of git://github.com/TazeTSchnitzel/php-src into TazeTSchnitzel-JSONCaseFix
Merge branch 'PHP-5.6'
Merge branch 'CLIGetAllHeadersBackport' into PHP-5.5

* CLIGetAllHeadersBackport:
  Removed UPGRADING note
  Rewrote test using tcp instead of http:// stream
  Implemented FR #65917 (getallheaders() is not supported by the built-in...)
Updated NEWS
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Updated NEWS
  Removed UPGRADING note
  Rewrote test using tcp instead of http:// stream
  Implemented FR #65917 (getallheaders() is not supported by the built-in...)
Merge branch 'PHP-5.6'

* PHP-5.6:
  Updated NEWS
  Removed UPGRADING note
  Rewrote test using tcp instead of http:// stream
  Implemented FR #65917 (getallheaders() is not supported by the built-in...)
avoid doing a stream_select on a closed stream
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  avoid doing a stream_select on a closed stream
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  avoid doing a stream_select on a closed stream
Merge branch 'PHP-5.6'

* PHP-5.6:
  avoid doing a stream_select on a closed stream
Merge branch 'master' into str_size_and_int64