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
Plumb errnum and ExtendedException through the new debugger error hook h...

Summary: ...andler.
Closes https://github.com/facebook/hhvm/pull/3435

Reviewed By: @jlreyes

Differential Revision: D1491840

Pulled By: svcscm
Fix covariance for Const{Vector,Map,Set}, add tests

Reviewed By: @elgenie

Differential Revision: D1499427
Add initial support for -d outside of --php mode

Summary: When we move completely off of HDF and onto ini, we will need native
-d support for hhvm (not just in php emulation mode). This starts that
process. Right now, this should be innocous with respect to HDF, but
should work for the basic case.

Reviewed By: @ptarjan

Differential Revision: D1490638