fix typo in usage for IMPLEMENT_STATIC_REQUEST_LOCAL

Summary: Closes #2899

Reviewed By: @ptarjan

Differential Revision: D1373800

Pulled By: @JoelMarcey
Avoid persisting stream filters across requests (stream_filter_register)

Summary: Closes #2900

Reviewed By: @ptarjan

Differential Revision: D1373808

Pulled By: @JoelMarcey
Make it clearer to gcc that open(2) is never called with O_CREAT without mode

Summary: We already ensure that this is never done, but `gcc` isn't smart enough to tell that.
Closes #2898

Reviewed By: @ptarjan

Differential Revision: D1373801

Pulled By: @JoelMarcey
Fix incorrect access to cold() and frozen()

Summary: You can't access cold() unless you own the CodeCache,
because it depends on the CodeCache's m_selection. This is
currently causing asserts to fire if you ask for the tc usage
via the admin port while we're jitting.

Use realCold, and realFrozen instead.

Reviewed By: aravind

Differential Revision: D1372564
don't buffer overrun on bad DNS TXT records

Summary: The TXT record is transmitted as

    ...stuff... [record length] ...stuff... [chunk length] chunk [chunk length] chunk ...

We preallocate a buffer of size `record length` but if any `chunk length` goes longer than that we happily overrun the end of the array. php5 is vulnarable to this as well. I'll send a PR.

Reviewed By: bertrand, joelm

Differential Revision: D1373942
bump tested guzzle4 version

Summary: Should stop raciness between guzzle3 and guzzle4 trying to use the same port.

Reviewed By: @JoelMarcey

Differential Revision: D1374311
Use makePseudoMainExit in more places

Summary: These exits are only used if we're in a pseudomain, so don't
do the work of generating them unless we have to.

Reviewed By: @ottoni

Differential Revision: D1373537
Attempt to make fsockopen_connect.php less flaky

Summary: It was assuming that 1ms was always enough time for the connection to
open but it's been failing on contbuild occasionally.

Reviewed By: @bertmaher

Differential Revision: D1374617