Updated reactphp framework tests to 0.4.1

Summary: We're still at `100%` passing tests.

Just a heads up that when 0.5.0 is released, we will have trouble testing it in this way since most of the code has been removed from the repo and moved into separate component repos so the test suite in the main repo no longer hits most of the code.
Closes https://github.com/facebook/hhvm/pull/3377

Reviewed By: @ptarjan

Differential Revision: D1488870
Rework the code relocation api

Summary: Cleanup to make it easier and more efficient to relocate multiple blocks simultaneously. For N tracelets of length L, reduces time from O(N*N*L.log(L)) to O(N.L.log(N.L))

Reviewed By: @edwinsmith

Differential Revision: D1491229
Re-record assetic

Summary: I will bisect why this changed

Reviewed By: @fredemmott

Differential Revision: D1492394
Add some comments to FrameState.

Summary: No functionality change.

Reviewed By: @bertmaher

Differential Revision: D1492234
Enable most optimizations with loops

Summary: Currently disables refcount-opts and reoptimize for regions that have
loops. This is controlled by a new field in IRBuilder, which should go
away once those two passes are fixed.

Reviewed By: @ottoni

Differential Revision: D1484156
Add test for gmp ignoring base for hex-like strings

Summary: Found by intermitently-failing mediawiki test

Reviewed By: @LiraNuna

Differential Revision: D1488998
Updated the drupal framework tests to 8.0-alpha13

Summary: This uncovers one error:
```
1) Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testSort

RUN TEST FILE:  cd /root/hhvm/hphp/test/frameworks/framework_downloads/drupal/core && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testDgjSb2 --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug  -c /root/hhvm/hphp/test/frameworks/framework_downloads/drupal/core/phpunit.xml.dist --filter 'Drupal\\Tests\\Core\\Config\\Entity\\ConfigEntityBaseUnitTest::testSort'

Failed asserting that two variables reference the same object.

/root/hhvm/hphp/test/frameworks/framework_downloads/drupal/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php:432
/root/hhvm/hphp/test/frameworks/vendor/phpunit/phpunit/src/TextUI/Command.php:179
/root/hhvm/hphp/test/frameworks/vendor/phpunit/phpunit/src/TextUI/Command.php:132
```
Closes https://github.com/facebook/hhvm/pull/3373

Reviewed By: @ptarjan

Differential Revision: D1487081
Updated the vfsstream framework tests to 1.3.0

Summary: This takes the percentage of passing test from `86.67%` to `89.04%`.
Closes https://github.com/facebook/hhvm/pull/3378

Reviewed By: @ptarjan

Differential Revision: D1491923
Revert "Enable most optimizations with loops"

Summary: This reverts commit 9f0c92ba1c1e9de9266b896d19874f45be5da325.

Was breaking hphp_dbgo_jit_loops run.

Reviewed By: @bertmaher, @ptarjan

Differential Revision: D1493916
Implement `idx` gdb command

Summary: Much like the corresponding PHP operation, `idx` is intended to take an
arbitrary container and an index and return container[index].  Currently
it only operates on vectors and generic objects, but support for more
containers is coming soon.

Reviewed By: @alexmalyshev

Differential Revision: D1493896
Updated the framework tests to a newer version of yii

Summary: We might as well test against a newer version of Yii since the version we are currently testing against is locked at how it was in February.
Closes https://github.com/facebook/hhvm/pull/3380

Reviewed By: @fredemmott

Differential Revision: D1488853

Pulled By: svcscm
added missing fclose() to free the handle after a test run

Summary: this prevents that the file handle leaks.
Closes https://github.com/facebook/hhvm/pull/3372

Reviewed By: @LiraNuna

Differential Revision: D1481200

Pulled By: svcscm
Fixed Exception in DoublyLinkedList::offsetUnset

Summary: zendtests are hopefully enough test coverage
Closes https://github.com/facebook/hhvm/pull/3391

Reviewed By: @fredemmott

Differential Revision: D1484805

Pulled By: svcscm
Fix an argument ordering bug in Redis lrem.

Summary: The PHP interface takes arguments in a different order than the redis server expects them.
Interchange (0-based) args 1 and 2 keyed off of the command name.

This fixes https://github.com/facebook/hhvm/issues/3357

A scan through the Redis PHP API documentation leads me to believe this is the only
instance wherein the PHP arguments are in a different order than the server arguments.
Closes https://github.com/facebook/hhvm/pull/3358

Reviewed By: @LiraNuna

Differential Revision: D1476999

Pulled By: svcscm
Use standard http reason for replay server

Summary: Closes https://github.com/facebook/hhvm/pull/3387

Reviewed By: @ptarjan

Differential Revision: D1484823

Pulled By: svcscm
Fix #3053: rename toString in ReflectionFunction / ReflectionMethod

Summary: This is a continuation of #3312 with tests.
Closes https://github.com/facebook/hhvm/pull/3356

Reviewed By: @LiraNuna

Differential Revision: D1476373

Pulled By: svcscm
Changed definitions of DateTime constants to null string (from 0).

Summary: Fixes issue #3439
Did not find any hhi specific tests, so no test changes were made.
Closes https://github.com/facebook/hhvm/pull/3442

Reviewed By: @fredemmott, @jwatzman

Differential Revision: D1492119

Pulled By: svcscm
Updated the twital framework tests to 0.1.6

Summary: Closes https://github.com/facebook/hhvm/pull/3450

Reviewed By: @fredemmott

Differential Revision: D1494805

Pulled By: svcscm
fix tc-space accounting

Summary: Fix for double counting for the size of some parts of tc when computing total size. The total size number for TC-space was double counting dat,rds,and peristentRDS.

override-test-failures

Reviewed By: @bertmaher

Differential Revision: D1480884
Implement SplDoublyLinkedList::add

Summary: Closes https://github.com/facebook/hhvm/pull/3390

Reviewed By: @LiraNuna

Differential Revision: D1484817

Pulled By: svcscm