Revert "Add Code Model classes to systemlib"

This reverts commit 29cee05ec8df2a970168fbd3f06301f3fa1f2d49.

Reviewed By: @sgolemon

Differential Revision: D1223208
Implement Collator::getSortKey

Mediawiki improvement - now that we have the intl ext, some tests aren't skipped

'New' failures in expect file were failing before this diff - this diff is a strict improvement.

Reviewed By: @sgolemon

Differential Revision: D1222416
Typo fix for normalizer_normalize

Reviewed By: @ptarjan

Differential Revision: D1222474
Add a NEWS for hhbbc

Reviewed By: @sgolemon

Differential Revision: D1224720
traits: correctly import constants from trait-implemented interfaces

... declared interfaces aren't quite good enough when traits
 join the party.

Reviewed By: @markw65

Differential Revision: D1213953
reflection: use actual, not declared interfaces ...

... which has the advantage of correctly reflecting the
 interfaces obtained from traits.

Reviewed By: @paroski

Differential Revision: D1213972
adding magic "Stringish" interface

It's quite useful to be able to typehint something that means
 "string-or-an-object-with-__toString". By popular demand, Stringish
 is that interface. Interesting choices in this implementation:
  - Stringish is added implicitly by defining __toString
  - unlike XHPChild, Stringish doesn't match int / double / array, even
    though those can be used in string contexts ... it doesn't seem
    particularly compelling

Reviewed By: @jdelong

Differential Revision: D1214064
Check the phar checksum if provided

Supports the current set of algorithms from MD5 through SHA512, using hash

Closes #1880
Closes #1933

Reviewed By: @fredemmott

Differential Revision: D1210782

Pulled By: @ptarjan
Fix guard relaxation bug with inner types

With pgo on, we use ir guard relaxation in "simple" mode. I forgot to
apply this to the inner constraint in addition to the outer constraint.

Reviewed By: @ptarjan

Differential Revision: D1224221
Don't allow unserialize to break property types in RepoAuthoritative mode

It's possible to crash the VM by unserializing strings that
give object properties types that we can't see statically.  Before
hhvm this was apparently handled by the smart pointer type rejecting
invalid unserialization, but now we just crash if it happens.  This is
still a work in progress, so it's behind a runtime option that's off
for now.  (We might need to pre-resolve persistent Class*'s from the
names in the RepoAuthType to make this performant.)

Reviewed By: @paroski

Differential Revision: D1156613
Add more detailed logging when we can't open the central repo

This adds more detail about why we failed open each candidate central
repo, logging to both stderr and the stacktrace file.

Reviewed By: @jdelong

Differential Revision: D1224717
Disable flaky zend test

Reviewed By: @bertmaher
Fix a locking bug in Index::lookup_this_available

Reviewed By: @dariorussi

Differential Revision: D1225901
Change shuffleArgs() on x64 to use rAsm instead of rCgGP

rAsm should not be used by general CG routines, while rCgGP is,
so rAsm should be safer. This also includes a micro-optimization
to do a 64-bit push of a DataType when possible, instead of
two 32-bit pushes.

Reviewed By: @sgolemon

Differential Revision: D1224119
Use/test PHPUnit 4.0.9

- change version the test runner uses to 4.0.9
 - change version tested to 4.0.9
 - re-rerecord .expect file (100%)

Reviewed By: @ptarjan

Differential Revision: D1225274
Fix mb_parse_str for empty input

Should be array(), currently null Breaks the Slim unit tests.

Reviewed By: @jdelong

Differential Revision: D1225411
range(), for making Range<T*> from arrays and std::vector

So people can more easily write functions which take contiguous values from memory.

Reviewed By: @tudor

Differential Revision: D1217809
Implement default_mimetype setting

PHPUnit 4.0.9 at 100%

refs facebook/hhvm#1904

Reviewed By: @ptarjan

Differential Revision: D1225185
Increase maximum number of args usable with HNI functions

Introduces "no doubles allowed" specialization of
nativeFuncCaller() which doesn't suffer the combinatorial
explosion effect of the more generalized version.

This should make extension development a lot less annoying
since implementors will no longer have to use ActRecs for
the common cases where no double args are used.

Reviewed By: @jdelong

Differential Revision: D1222496
Allow disabling HHBBC via environment variable

Reviewed By: @sgolemon

Differential Revision: D1225260