Update failing test expectation to match output

Reviewed By: @ptarjan

Differential Revision: D1368793
Use unsafe vmReg access in fcallHelper

Summary: We have just synced the registers in setupAfterPrologue, but the
regState is DIRTY as we are going to return to the JIT. Use unsafe
vmReg access.

Reviewed By: @swtaarrs

Differential Revision: D1365123
Fix eval bug when running drupal. Match PHP5 behavior.

Summary: This fix is needed for https://drupal.org/node/2270509
See also #2708
Closes #2840
Fixes #2023

Reviewed By: @markw65

Differential Revision: D1361667

Pulled By: @JoelMarcey
SOAP fixes

Summary: These are 2 separate commits because technically they are different issues, but the 55323 test depends on the o_set fix as well.
Closes #2866

Reviewed By: @ptarjan

Differential Revision: D1369057

Pulled By: @JoelMarcey
Fix mysql_free_result and is_resource for localized mysql results

Summary: Follow-up to facebook/hhvm#1946 - MySQL.Localize (fbonly option) currently doesn't free results when told to, or have a working is_resource.

Reviewed By: @ptarjan

Differential Revision: D1364320
Allow vtable-style dispatch on abstract instance methods

Summary: This was disabled, going back to the initial implementation
in tx64.  Abstract methods have method slots that behave the same when
overriden as normal methods, so maybe this dates back to before we had
bytecode bodies for the "base" abstract methods (to implement "pure
virtual called" errors)?  This diff only enables it for non-static
methods.

Reviewed By: @ottoni

Differential Revision: D1366913
hhbbc main(): better error message if the input repo doesn't exist

Summary: Right now it hits an assertion failure in FuncEmitter.

Reviewed By: @dariorussi

Differential Revision: D1367724
Fix a race condition in hh_add.

Summary: Fixed a documented race condition in hh_add in the Hack lockfree hashtable. If two threads try to insert the same data, and both try to grab the same slot, the one that fails could return before the one that won writes the (char*)1 sigil indicating that it is filling in the value. The solution is to still try to write the value in in this case.

Reviewed By: @gabelevi

Differential Revision: D1361974
Fix build flakiness

Summary: A change in fbstring interacts badly with jemalloc's
MAP_UNINITIALIZED mode, which bit us in Scanner::Scanner.

This fixes the issue by passing around std::strings instead of
char*'s obtained from std::string::c_str().

Reviewed By: drussi, bsimmers

Differential Revision: D1368857
Use an array for id caching instead of using libxml2's private pointer

Summary: A past contributed commit used libxml2's private pointer to store past instances for caching in order to maintain instances.
This diff changes this approach to a use the global node cache map.

Fixes #2772

Reviewed By: @ptarjan

Differential Revision: D1367960
Initialize vm-exit return for resumable ActRecs in advance

Summary: Currently we set return address as vm-exit per every async function
resume. Initialize it only once when it is constructed.

Reviewed By: aravind

Differential Revision: D1369502