Ignore test litter
Add magic methods to the collections IDL.

The magic methods for Pair were missing from the IDL, and so were
not visible from PHP-land.

Add them to the IDL.

Reviewed By: @elgenie

Differential Revision: D1066776
String::String(char) = delete; fix exposed lolbugs

While working on something else, I got bitten by this: if you construct
a String from a char, the char gets promoted to int and that constructor
won't do what you want (it stringifies the int).

To my great joy, this exposed some actual latent bugs, so I fixed them.
E.g. the things that thought they were appending a slash were actually
appending the string "47".

Reviewed By: @swtaarrs

Differential Revision: D1067258
Fix Reflection to support ordering properties like Zend

Zend orders their properties with child first then parent. We were doing the opposite. Fix that by rearranging the array in php land in reflection.php

Reviewed By: @ptarjan

Differential Revision: D1064961
Disable flaky test/zend/good/ext/standard/tests/file/copy_variation16.php

Reviewed By: @jdelong

Differential Revision: D1068500
Allow rewrite rules to apply to files that exist

Adds a CheckExistenceBeforeRewrite option to allow rewrite rules to take effect even on files that exist on the default path. This option is off by default.

Closes #1283
Closes #1286

Reviewed By: @ptarjan

Differential Revision: D1065548

Pulled By: @scannell
warn on null file to fopen

Without this we hapilly put the `cwd` infront and open a directory. mediawiki has a test failing because of it. This felt like the best place to put it.

Reviewed By: @alexmalyshev

Differential Revision: D1067777
Split HHProf into compile plus runtime options

This splits HHProf (heap profiling) into two different knobs --
one is compile time, because of the overhead in the memory-manager smart
malloc functions, and the other is a runtime option that controls actual
tracking of data. This gets us the ability to have no impact when
compiling without the flag and minimal impact (within 1%) of impact when
compiling with the flag but with the runtime option turned off.

Reviewed By: @mikemag

Differential Revision: D1068213
Add phpunit config file support to script test command

Add -c support to the test command for running phpunit from our script.

Reviewed By: @ptarjan

Differential Revision: D1068614
add pull request

Slim isn't being responsive

Reviewed By: @JoelMarcey

Differential Revision: D1068996
stream_resolve_include_path needs to return false on failure, not null

stream_resolve_include_path() was returning null for invalidity instead of false. Make it so.

Reviewed By: @ptarjan

Differential Revision: D1068148
Don't let debug_backtrace read a freed ExtraArgs during unwinding

thats it

Reviewed By: @jdelong

Differential Revision: D1068339
remove 'now' case from test/slow/datetime/compare.php

This is a bit flakey since the 1 second boundary can tick inbetween the `null` and `"now"` case. That isn't even the main point of this test.

Reviewed By: @markw65

Differential Revision: D1069019
assetic is being difficult

Something needs to be done but while we bicker just use this

Reviewed By: @JoelMarcey

Differential Revision: D1069051
Fix ARM mode bustage that occurred during lockdown

- At some point, the order of arguments to InterpOne got switched
  around for no apparent reason in the refcount optimization diff.

- My fix to poly-torture.php got accidentally pseudo-reverted, also in
  the refcount optimization diff.

- The type effects of an interped PushL wasn't accounted for properly.

There are still a few more quick tests that crash. Based on their file
names, I think it's all a single root cause. I'll look at those next.

Reviewed By: @jdelong

Differential Revision: D1068766
Make Zf2 use the latest dev of PHPUnit with our PHP_BINARY fix

To avoid the dreaded "Nothing to do" error, we need PHPUnit to check for our PHP_BINARY env variable. We had that pull requested accepted by PHPUnit. Now the framework vendor dirs need that version. Start with zf2.

Reviewed By: @ptarjan

Differential Revision: D1069559
random test runner fixes

stuff i needed while debugging doctrine

Reviewed By: @JoelMarcey

Differential Revision: D1069627
Don't pass the wrong type to dom error handlers

The error handler takes an arbitrary "context" pointer.
In our handler, if the pointer is not null, we assume its an
xmlParserCtxtPtr, but there were a few places where we passed
in a different type.

Just pass in nullptr instead.

Reviewed By: @edwinsmith

Differential Revision: D1069579
frameworks: use branch with joomla sort order

... also rerecorded the .expect

Reviewed By: @JoelMarcey

Differential Revision: D1069868
Go to the latest github hash for phpbb3 and get the tests to behave

We were failing many tests in phpbb3 because there was globals clowniness when trying to run their tests with filenames. I sent a pull request up to fix that. In the meantime, use my fork.

Reviewed By: @elgenie

Differential Revision: D1069881