Trim the next file name

Summary: This removes trailing null characters, meaning the `file_put_contents` in `extractAllTo` doesn't error from a path with a null character in it which happened when trying to extract a file with a name over 100 characters long.

Also matches the behaviour of a non-link file where the filename gets trimmed when read from the header.
Closes https://github.com/facebook/hhvm/pull/3408

Reviewed By: @ptarjan

Differential Revision: D1488803

Pulled By: svcscm
apc_add(Array) returns an array of errors

Summary: That array is formed `key=>error number`. Currently there is only -1 for an insertion error
Closes https://github.com/facebook/hhvm/pull/3423

Reviewed By: @ptarjan

Differential Revision: D1488962

Pulled By: svcscm
fix Redis lrem can remove type is string or float

Summary: Fix Redis lrem don't remove in addition to Long value,

Specific content see:

https://github.com/facebook/hhvm/issues/3452
Closes https://github.com/facebook/hhvm/pull/3453

Reviewed By: @ptarjan

Differential Revision: D1494809

Pulled By: svcscm
Dont use SQLite 3.8.4

Summary: Extended the blacklist of 3.8.5 to include all 3.8+ versions. This fixes the same issue as hhvm/hhvm-third-party#4 (if your system SQLite version is 3.8.4).
Closes https://github.com/facebook/hhvm/pull/3473

Reviewed By: @ptarjan

Differential Revision: D1500289

Pulled By: svcscm
Updated cakephp3 to 3.0.0-alpha2 in the framework tests

Summary: We have a higher test pass rate of 98.56% now.
Closes https://github.com/facebook/hhvm/pull/3501

Reviewed By: @ptarjan

Differential Revision: D1502584

Pulled By: svcscm
Re-record zf2 tests and flakey list a file

Summary: Additional follow up to #3454 in addition to #3455.
Closes https://github.com/facebook/hhvm/pull/3489

Reviewed By: @ptarjan

Differential Revision: D1502579

Pulled By: svcscm
Added factory muffin to the framework tests

Summary: Note that the tests don't run correctly on the current 2.0.x tag. They require changes that will land in the 2.1.0 release.
Closes https://github.com/facebook/hhvm/pull/3500

Reviewed By: @ptarjan

Differential Revision: D1502582

Pulled By: svcscm
Move debugger from IDL to HNI

Summary: Part of #1480.

This moves the functions from `debugger.idl.json` to HNI.
Closes https://github.com/facebook/hhvm/pull/3491

Reviewed By: @ptarjan

Differential Revision: D1502583

Pulled By: svcscm
Never call TranslatePath() on filepaths beginning with a wrapper

Summary: When called on a string preceding a wrapper the wrapper turns into an absolute path.
Resulting in file not found most likely
Closes https://github.com/facebook/hhvm/pull/3503

Reviewed By: @ptarjan

Differential Revision: D1502585

Pulled By: svcscm
Create a unified stack for Xenon

Summary: Unifying the PHP and async stacks for Xenon.
Combining the code from the previous Async and PHP stack functions into one.
Eliminating aspets to those functions that we didn't need.
Currently, keeping the async and php stack functions.  Will remove them when
the www side changes land that no longer use them.

Reviewed By: @jano

Differential Revision: D1423082
Parser: Fix decl mode's confusion of type hints and xhp.

Summary: Parser was getting confused when type hints (on function expressions) were used in function bodies of decl'ed files; it interpreted them as xhp tags. This fixes T4531988.

Reviewed By: @elgenie

Differential Revision: D1502296
Flakeylist another joomla test

Summary: Failed on an unrelated PR.

Reviewed By: @JoelMarcey

Differential Revision: D1500876