Merge branch 'PHP-5.3' of https://git.php.net/repository/php-src into PHP-5.3

* 'PHP-5.3' of https://git.php.net/repository/php-src:
  fix using wrong buffer pointer
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
Fix failed test with recent glibc

In recent version of strptime glibc upstream has fixed a discrepancy between
documentation and actual behaviour by skipping over the sequence that would match %Z.
See http://repo.or.cz/w/glibc.git/commitdiff/ddc7e412ab252e7360a4357664beb3b5d9c4f42b

So when %Z is used in format
glibc <= 2.18 returns the GMT as unparsed
glibc >= 2.19 returns empty string

Removing %Z from tested format gives the same behavior with all version.
Removed UPGRADING note

Conflicts:
	UPGRADING
Move the JSON bugfix into the 5.5.6 changelog.
Fix Bug #65714 	PHP cli forces the tty to cooked mode

Only drop the using_history() call with libedit as I don't know
if it is required with readline.

This also allow to run a php script in background without
it being aborted on first output.
NEWS
This is CLI web server change.  Added some common MIME types to the
existing lookup list, pending a more thorough lookup solution, if
anyone wants to do that.  Ref http://news.php.net/php.internals/69990

A router can be used to add to, or override, the MIME type lookups,
see http://php.net/manual/en/features.commandline.webserver.php
Fixed Bug #66094 (unregister_tick_function tries to cast a Closure to a string)
Merge branch 'PHP-5.4' into PHP-5.5
Update NEWS
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
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
Fixed tests that fail with non-default `serialize_precision` configurations.

See:

 * https://bugs.php.net/bug.php?id=64760
 * 4dc4302
Fixed tests that fail with non-default `serialize_precision` configurations.

See:

 * https://bugs.php.net/bug.php?id=64760
 * 4dc4302
added a test to cover distinction between boolean return value of unserialize function and deserializing serialized boolean
Fix WS in serialization_error_002.phpt