CheckType input must be in a register

Summary: Noticed some broken code while browsing code, but it
turns out the broken case was never executed anyway.

Reviewed By: @bertmaher

Differential Revision: D1336305
Clean up more zend-* allocations

Summary: This cleans up string_strip_tags and url_parse.

Reviewed By: @edwinsmith

Differential Revision: D1336071
ignore hphpize

Reviewed By: @JoelMarcey

Differential Revision: D1336411
s/Zend PHP/PHP5/g

Summary: Zend didn't write it and there are members of the comunity which prefer this name. We don't really want to take a stance either way, so we're going with PHP5 as the name for the reference implementaiton of php.

I removed all the extra 5s from `PHP5 5.` which this introduced.

Reviewed By: @JoelMarcey

Differential Revision: D1336440
Stop making a copy in EmptyArray::Copy

Summary: Ideally we shouldn't need to copy the empty array.

This broke ArrayUtil::Walk because it started calling
EmptyArray::AdvanceMArrayIter. Switching that to return false instead
of not_reached() fixed things locally for me.

Also broke GenArrayWaitHandle::create, which was asserting that it
would only get Packed or Mixed arrays.

Reviewed By: @jano

Differential Revision: D1299321
Use zend_memrchr instead of handrolled loop

Summary: The handrolled loop does a memory access before checking if it's out of
bounds.

Reviewed By: @oebeling

Differential Revision: D1329571
Replaced C++11 for BOOST_FOREACH syntax

Summary: Closes #2524

Reviewed By: @ptarjan

Differential Revision: D1331279

Pulled By: @JoelMarcey
Change SIGTERM to kill the process and SIGHUP to do a graceful stop

Summary: Before this change, SIGTERM would do a graceful stop, which is a bit
against precedent in unix servers.
Closes #2645

Reviewed By: ptarjan, rkroll

Differential Revision: D1329730

Pulled By: @JoelMarcey
a new --check action

Summary: This can help in the futur.

Reviewed By: jcreed

Differential Revision: D1335158
Fallback to global namespace when autoloading functions

Summary: Closes #2393

Reviewed By: @ptarjan

Differential Revision: D1331412

Pulled By: @JoelMarcey
Truncate very long socket paths

Summary: Apparently the max length for these is much shorter than the
max length for a path? In any event I get a reproducible failure when
using the test case in the linked issue. Let's enforce a max -- the
number 50 was chosen pretty arbitrarily, not sure what it really should
be. (Didn't want to digest universally since this could harm
debuggability in the common case.)

Also deleted some dead code.

Fixes #2149

Reviewed By: @pikatchu

Differential Revision: D1322841
remove typo3 tests

Summary: Breaks test runner (with CSV output)

Reviewed By: @JoelMarcey

Differential Revision: D1337354
Autostart server on hack build, increase timeout

Reviewed By: @aryx

Differential Revision: D1336574
Fix a null pointer deref in SimpleXMLElement::getDocNamespaces

Summary: Needed a null pointer check.

Reviewed By: @fredemmott

Differential Revision: D1328311
Don't run past the end of the format buffer in string_printf

Summary: If the current char is a single quote it'll increment the index in the
loop body, and then increment it again in the loop step before accessing
the buffer.

Reviewed By: @fredemmott

Differential Revision: D1329727
Unbreak EVALSHA in Redis client

Summary: Keys in Redis::$map have to be all lowercase, because Redis::_call calls
strtolower on the method name before it looks it up in the table.
Closes #2704

Reviewed By: @fredemmott

Differential Revision: D1336714

Pulled By: @JoelMarcey
Remove spurious logging command

Summary: Oops.

Reviewed By: @pikatchu

Differential Revision: D1337484
document constructor inconsistency

Summary: Closes #2594
Closes #2592

Reviewed By: @JoelMarcey

Differential Revision: D1336439
First take at trying to enable precompiled headers.

Summary: Turn it on with `cmake -DENABLE_COTIRE=1`. Once this gets tested in many configs and verified it helps with compile times, we can enable it by default.
Closes #1932

Reviewed By: @JoelMarcey

Differential Revision: D1337629

Pulled By: @ptarjan
HPHPCompiler, update detect compiler.

Summary: Fix chrpath with apple.
Refactoring detect compiler GCC / Clang / Intel C++ / Visual Studio C++

Reviewed By: @ptarjan

Differential Revision: D1337974

Pulled By: @JoelMarcey