Fix OS X warning in bcmath

IniSetting::Bind deals with int64_t so the precision setting
should be unambiguously int64_t as well. Also fix tabbing.

Reviewed By: @edwinsmith

Differential Revision: D1155271
Implement getlastmod and getmyinode

php.net fatals on the first line of index.php on HHVM.

Let's not fatal. The first call is to getlastmod. Might as well implement getmyinode too.

Reviewed By: @ptarjan

Differential Revision: D1151025
Fix bugs in query op predicates introduced by removal of JmpIs{N,}Type

This fusion was apparently actually happening after all, at
least with hhbbc turned on.  Maybe we'll want to implement something
like it at some point (or use a generic branch fusion thing), but
right now it is probably best to leave it off, because it wasn't
implemented in jump-opts and the REQ_BIND_JMPCC would end up in
astubs, which seems worse than one extra setcc and test opcode.

Reviewed By: @bertmaher

Differential Revision: D1155023
Remove LdHome from ir.specification

Somehow missed this when removing LdHome.

Reviewed By: @edwinsmith

Differential Revision: D1154578
Don't killLocals when making calls on objects or arrays

In FPushFunc, if we know it's an object or array, we can
create an ActRec that has enough information to rule out the
possibility of calling extract(), which could kill locals.

Reviewed By: @elgenie

Differential Revision: D1145505
Localize asserts about builtin class resolution in helper method

Add a function to resolve builtin classes that does this
assert for us.

Reviewed By: @dariorussi

Differential Revision: D1152091
Disable HHBBC::single_unit for now

It's not actually correct, and we don't need it yet.

Reviewed By: @ptarjan

Differential Revision: D1152461
Flip endianness of hash("tiger128,3") output

The original version was wrong.
This is the correct endianness.

Reviewed By: @ptarjan

Differential Revision: D1152593
Export adler32-fb hash algo

BC inverted algorithm output

Reviewed By: @ptarjan

Differential Revision: D1152615
VariableSerializer should use toArray not getArray

Because some classes have custom implementations of ToArray,
we must let o_toArray decide whether or not we should call
o_getArray because the latter only deals with dynamic properties.

Closes #1680
Closes #1683

Reviewed By: @ptarjan

Differential Revision: D1155264

Pulled By: @scannell
HNI conversion script update

Add support for ActRec, varargs, and warn if a ref type is not
a Variant.

Closes #1685

Reviewed By: @ptarjan

Differential Revision: D1155280

Pulled By: @scannell
Revert "Remove legacy linear scan register allocator"

This reverts commit 14a7f0fcb2d9036dff2ad9580fb6255fe2ba2bcf.

Reviewed By: @ottoni

Differential Revision: D1155782
Update NEWS for upcoming release

Reviewed By: @edwinsmith

Differential Revision: D1155493
Start of mysqli

- This is a start of mysqli.
- Things should be usable now.
- Putting up a diff so I don't break anything

Reviewed By: @ptarjan

Differential Revision: D1144612
Update libevent builds.

Update link in third-party2 to pick up new libevent builds for hhvm.

Reviewed By: @ptarjan

Differential Revision: D1153968
Clarify the code in ArgDesc

We had two nearly identical cases for handling constants,
and two quite-different conflated cases.  Combine the two
constant cases and separate the two val-vs-type cases.

Reviewed By: @ottoni

Differential Revision: D1155243
Add fill-column local variables to spec files

At least for emacs users, the default is smaller than we're
standardizing on.

Reviewed By: @jasone

Differential Revision: D1154516
Add support for .onlyrepo tests in test/run

And fixed printing of $reason in verbose mode.

Reviewed By: @sgolemon

Differential Revision: D1156502
fix behaviour diff in date_sunrise and date_sunset

1.debug hhvm using gdb
2.compare with zend php
3.make the bug as a unitest

Reviewed By: @ptarjan

Differential Revision: D1126698
AssertType with no registers is a nop

Prevents a crash when cg'ing AssertType<InitNull>, because it
has no registers allocated.

Reviewed By: @jdelong

Differential Revision: D1154948