Update folly again to fix OSX compilation
Fix an issue when pmethodCacheMissPath loses the smashing race

@oyamauchi caught this with an assert in ActRec::getThis()
that says it hasThis().  When we lose the race here, it is repeating
the call to methodCacheSlowerPath, which will re-do the decref of
$this in the case of a static call.  We've already fully handled
setting up the ActRec for this particular call before we start doing
any smashing, so just returning is fine.

Reviewed By: @markw65

Differential Revision: D1161874
Fix hhbbc compilation with gcc 4.9

Fix hhbbc compilation error with gcc 4.9

Closes #1717

Reviewed By: @jdelong

Differential Revision: D1161984
Make HHVM test runner failures go to stderr

Makes errors in unattended runs clearer.

Reviewed By: @JoelMarcey

Differential Revision: D1162516
Return current working directory even if it was removed

In case if CWD was delete  getcwd() will return NULL and that will crash hphp.
Having the correct CWD is essential to be able to resolve relative pathnames.

Reviewed By: @swtaarrs

Differential Revision: D1158933
Temporary forked yii until pull request accepted for PHPUnit 3.8 support.

Yii's bootstrap relies on the older 3.7 directory structure of PHPUnit. I didn't catch that fataling in the support PHPUnit 3.8 diff. Use my fork until yii accepts the pull request with my fix.

https://github.com/yiisoft/yii/pull/3211

Reviewed By: @fredemmott

Differential Revision: D1162580
Add preg_filter function

Add preg_filter function
https://github.com/facebook/hhvm/issues/1373

Reviewed By: @ptarjan

Differential Revision: D1161169
Enable MemModelTreadmill when running in Server mode, keep it false otherwise.

The runtime options MemModelTreadmill can be set via config file, however if not it defaults to true in Server mode and false otherwise

Reviewed By: @jdelong

Differential Revision: D1158116
Test HHVM against Mockery 0.9.0, disable Zend extensions

Zend explanation in code comment

Reviewed By: @JoelMarcey

Differential Revision: D1162801
Initialize StreamContext associated with a file

This fixes

get_stream_context(CVarRef stream_or_context)

so that it works for streams as well as contexts which in turn means
that

stream_context_get_params($stream_or_context)

and

stream_context_get_options($stream_or_context)

will now also work for streams.

Closes #1656

Reviewed By: @ptarjan

Differential Revision: D1146875

Pulled By: @scannell
Make SplHeap signatures compliant with Zend

Make SplHeap and subclass compare methods protected instead of
public per Zend

Closes #1720

Reviewed By: @ptarjan

Differential Revision: D1162387

Pulled By: @scannell
clear memoizedFuncs for each FuncEmitter

Facebook: this was causing asan build failures.

Reviewed By: @scannell

Differential Revision: D1162454
Some more FastCGI perf work

* Don't construct std::strings from string literals every time a
  function is called
* Switch a few typedefs from std::map to std::unordered_map
* Access values in request header map in FastCGITransport by reference
  when possible

Reviewed By: @jdelong

Differential Revision: D1145271
Fix OSX compilation in mysql(i)

Fix OSX compilation in mysql(i)

Reviewed By: @JoelMarcey

Differential Revision: D1163202
More gcc 4.9 fixes

More gcc 4.9 compilation fixes

Closes #1717

Reviewed By: @jdelong

Differential Revision: D1163642
MemoryIdler needs to be Linux-specific

Summary: MemoryIdler depends on futex which is Linux-only.

Reviewed By: sgolemon
Convert ext/curl to HNI

Convert ext/curl to HNI

Closes #1692

Reviewed By: @sgolemon

Differential Revision: D1155575

Pulled By: @scannell
Some fixes and move a bunch of tests that now passes

- Support persistant connections
- Small bug fix when calling data_seek and not having a result

Reviewed By: @ptarjan

Differential Revision: D1160110
Case-insensitive check for Accept-Encoding: gzip

We were using case-sensitive std::string::find for this. Use strcasestr
instead.

Reviewed By: @markw65

Differential Revision: D1164176
Fix bogus namespace error.

Don't bail out with an error if a hashbang precedes a namespace declaration
in a source file.

Reviewed By: @ptarjan

Differential Revision: D1160029