Updated the zf2 tests to 2.3.2

Summary: The test are at `97.01%` passing.
Closes https://github.com/facebook/hhvm/pull/3455

Reviewed By: @fredemmott

Differential Revision: D1494811Pulled By: svcscm
up all the ftp timeouts

Summary: We should really be trying as much as possible and let the test runner time us out instead

Reviewed By: @JoelMarcey

Differential Revision: D1495421
Updated fastroute tests to v0.2.0

Summary: This uncovers some issues:
```
1) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches with data set #2 ('GET', '/user/rdlowrey', Closure$FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases;434883760#3, 'handler2', array('rdlowrey'))

RUN TEST FILE:  cd /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testqIDsQM --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug  -c /root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/phpunit.xml --filter 'FastRoute\\Dispatcher\\MarkBasedTest::testFoundDispatches with data set #2'

array_keys() expects parameter 1 to be an array or collection

/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/MarkBased.php:46
/root/hhvm/hphp/test/frameworks/framework_downloads/fastroute/src/Dispatcher/Mark
Closes https://github.com/facebook/hhvm/pull/3428

Reviewed By: @fredemmott

Differential Revision: D1489994Pulled By: svcscm
Updated html5php framework tests to 2.0.0

Summary: We're still at `100%` passing tests.
Closes https://github.com/facebook/hhvm/pull/3382

Reviewed By: @fredemmott

Differential Revision: D1488848Pulled By: svcscm
Removed trailing whitespace from the test run file

Summary: Closes https://github.com/facebook/hhvm/pull/3410

Reviewed By: @fredemmott

Differential Revision: D1488927Pulled By: svcscm
Imagick IMGTYPE_PALETTE

Summary: Fixes #3303.

I double checked the PHP documentation and it seems that this is the only constant that hasn't been defined in the HHVM implementation.
Closes https://github.com/facebook/hhvm/pull/3429

Reviewed By: @fredemmott

Differential Revision: D1490366Pulled By: svcscm
Implement SplFileObject::fread

Summary: I can't test against length < 0 currently, because fread's implementation doesn't match php5
Closes https://github.com/facebook/hhvm/pull/3367

Reviewed By: @ptarjan

Differential Revision: D1479964Pulled By: @fredemmott
Don't swallow timeouts and OOMs in autoload map

Summary: Timeouts and OOMs are useful to have.

Reviewed By: @markw65

Differential Revision: D1496409
Don't swallow timeouts and OOMs in check_request_surprise()

Summary: Currently, if a pending exception is registered in the surprise flags,
_and_ we have a timeout or OOM registered, we ignore the latter and only
process the former. In the case of OOMs at least, if this happens, we
will never register an OOM again for the rest of the request, regardless
of what the consequence of the thrown pending exception is.

Let's instead re-set the timeout and OOM flags in this case, so that
they'll be processed on the next check.

Reviewed By: @jano

Differential Revision: D1496336
Replace all uses of NOT_REACHED with not_reached

Summary: They're the same thing, and one of them sounds a lot angrier than the other.

Reviewed By: @mxw

Differential Revision: D1497048
Remove unused variable

Summary: See 0186e0b24
Closes https://github.com/facebook/hhvm/pull/3389

Reviewed By: svcscm

Differential Revision: D1484819Pulled By: @fredemmott
Updated the phpunit framework tests to 4.2.0

Summary: Those tests that have been removed are due to a depreciation the phpunit team made and they deleted the tests because the functionality of the feature is no longer cared about.
Closes https://github.com/facebook/hhvm/pull/3400

Reviewed By: svcscm

Differential Revision: D1487064Pulled By: @fredemmott
Do exhaustiveness and redundancy checking for switches on enums

Summary: Do exhaustiveness and redundancy checking for switches on enums. We make sure that when we switch on an enum type, every case is a class constant from the enum and that we cover every value exactly once.

Reviewed By: @jwatzman, @elgenie

Differential Revision: D1490656
SplHeap::top() s/peak/peek

Summary: Hilariously fixes two zend tests
Closes https://github.com/facebook/hhvm/pull/3413

Reviewed By: @ptarjan

Differential Revision: D1488521Pulled By: @fredemmott
fixedArray::offsetExists returns false for index < 0

Summary: Closes https://github.com/facebook/hhvm/pull/3392

Reviewed By: @fredemmott

Differential Revision: D1484795Pulled By: svcscm
Fix DOMDocument::C14N()

Summary: Fixes #3440.

Seems like someone was in a hurry while writing this :smile: I needed a while to see what's wrong.
Closes https://github.com/facebook/hhvm/pull/3444

Reviewed By: @fredemmott

Differential Revision: D1492230Pulled By: svcscm
Allow extensions by absolute path

Summary: Shouldn't need an extension_dir if the path is absolute.
Closes https://github.com/facebook/hhvm/pull/3462

Reviewed By: @fredemmott

Differential Revision: D1497002Pulled By: svcscm
Corrected an error message in ext_mcrypt functions

Summary: This fixes a typo in error for all of ext_mcrypt functions

Reviewed By: @JoelMarcey

Differential Revision: D1498436
Prevent inlining of calls to builtin static methods.

Summary: HNI Static methods take the class they belong to as their first parameter, but this parameter is not provided when the call is inlined. Don't inline NativeImpl when calling a static builtin method.

Reviewed By: @bertmaher

Differential Revision: D1497051
Update third-party to pull in folly 3:1