Added auto yes to apt-get install in configure_ubuntu_12.04.sh
Remove generated file from repo
unittest for doing a controlled simulation of job queue workload

A simple framework for doing a controlled simulation on job queue. Within this
set up, we can specify a duration for each request going through the system. The
request will have a fixed service duration of x ticks. We define our own
TickWorker that finishes the request after x ticks. We have a static global
logical clock we can then use to drive the simulation.

The next step is to generate a reasonable workload based on our real work
request latency distribution and run it through the system. After that, we can
simulate server side issues (ie. all reqeusts incur additional latency or small
percentage of request with very high latency).

The test case will help us select and fine tune the algorithm for doing queuing
and timeouts.

Reviewed By: rkroll

Differential Revision: D1043222
PHP integers are 64 bits

The fact that ArrayData::m_size is uint32_t complicated things a bit.

Reviewed By: @bertmaher

Differential Revision: D1043095
Add PushL for use in continuations

PushL pushes the value of a local on the stack and unsets it, avoiding
any refcounting operations. This is useful in Continuation::send and async
functions.

Reviewed By: @ottoni

Differential Revision: D1042054
Sort the expect files alphabetically.

Let's sort the expect files alphabetically so any changes to them doesn't result in mega-diffs.... well, this will be the last mega diff to prime the expect files :)

Reviewed By: @ptarjan

Differential Revision: D1044747
parity: move gc_enable warnings behind hip hop syntax

... and make gc_disable emit no warnings, since it's a 100%
 effective no-op.

Reviewed By: @ptarjan

Differential Revision: D1044225
parity: make ZipArchive Not Implemented errors informative

... throwing ##"Not implemented is not implemented"## does
 not cover oneself in glory. Easy fix with a few emacs macros

Reviewed By: @ptarjan

Differential Revision: D1044243
Inline small cold functions into hot ones

I noticed some missed opportunities for inlining were because the
callee was not marked as hot, but the caller was.  There's a check to
prevent inlining in such case, which kind of makes sense -- the call
may be in a cold path.  However, in some cases the callee is not
marked as hot probably just because it's too small.  And if the
function is small enough it's better to inline it anyway -- they code
may get smaller.  So I added a callee code-size threshold below which
inlining is always allowed.

I did some experiments with different values for the new threshold,
and also the previously existing HHIRInliningMaxCost, and set them to
what seems best these days.

Reviewed By: @jdelong

Differential Revision: D1044965
Give ArrayObject's fields default values

Magento2 (and possibly other frameworks) end up making classes
that extend ArrayObject but never call its constructor. This works
under Zend so it should work under us as well.

Reviewed By: @scannell

Differential Revision: D1045913
Unit test: do not assume existence of Static*WaitHandle::create() functions

Use async functions to generate Static*WaitHandles. The explicit methods
to do so will be gone soon.

Reviewed By: @billf

Differential Revision: D1046534
Demallocify md5

This refactors the MD5 code a bit to avoid forcing the use of malloc.
Now, the raw MD5 api unconditionally gives back a 16-byte digest,
and we have wrappers to convert to std::string and String, respectively.

Reviewed By: @jdelong

Differential Revision: D1046220
Unit tests for mem-file

Unit tests for mem-file.

Reviewed By: bmaurer

Differential Revision: D1040720
Fix: fb_rename_function of extract disabled the wrong direction

This disabled making new functions named 'extract', which
doesn't work because extract already exists.  We want to disable
allowing creating new functions that have the behavior of extract.

Reviewed By: danielm

Differential Revision: D1042932
RecursiveIteratorIterator must be constructed with a Traversable

This is Zend's behavior, and zf2 reflection tests check this

Reviewed By: @ptarjan

Differential Revision: D1045288
Initial implementation of ReflectionClass::getDefaultProperties()

We weren't tracking the default values of properties in
ReflectionProperty. Unfortunately this diff only fixes the issue for
classes that don't use ClassInfo, so builtin classes will still break.
Fixing them will be a separate diff.

Also replace old for loops with range-for

Reviewed By: @ptarjan

Differential Revision: D1043255
Miscellaneous fixes: add newlines back, remove specific user path info, and help message update

Removing the final newlines from the expect files was premature and probably a mistake.

http://stackoverflow.com/questions/729692/why-should-files-end-with-a-newline

So, leave it to clients/upstream to deal with newlines at the end of the file.

Also, do not print user path info out in expect files (or other files). e.g., no joelm

Also, list frameworks in help message when specifying invalid ones

Reviewed By: @ptarjan

Differential Revision: D1045907
Blacklist some test files causing deadlocking issues

A few test files from a few frameworks are causing deadlocking issues with the script. Blacklist them. Deal with them later.

Reviewed By: @ptarjan

Differential Revision: D1047939
Fixing changes in $_SELF logic.

Reverted unintentional changes in $_SELF computation logic.

Reviewed By: @ptarjan

Differential Revision: D1047953
Revert "Fix /stop command issued when hhvm can't bind port"

This reverts D944849

Reviewed By: @bertmaher

Differential Revision: D1047984