Fix a notice "Undefined variable: return_value" in test/run

Summary: Closes #2630.

Reviewed By: seanc

Subscribers: hphp-diffslists, ps

Differential Revision: D1331774
Fix substitution of invalid UTF8 sequences in htmlspecialchars.

Summary: This fixes #2679
Closes #2680

Reviewed By: liranuna

Subscribers: trunkagent, hphp-diffslists, ps

Differential Revision: D1330087

Pulled By: @JoelMarcey
Optional parameter $filename in Imagick->readImageBlob()

Summary: Make parameter $filename optional
Closes #2663
Fixes #2213

Reviewed By: fredemmott

Subscribers: trunkagent, hphp-diffslists, ps

Differential Revision: D1330197

Pulled By: @JoelMarcey
cleanup and make --clean to just clean

Summary: slightly cleaner. Maybe.

Reviewed By: jcreed

Subscribers: dhoskins, hphp-diffslists, ps, jwatzman, ptc

Differential Revision: D1330897
Include TYPO3 CMS unit tests in framework parity check

Summary: Fixes #2103
Closes #2558
Fixes #2503

Reviewed By: fredemmott

Subscribers: hphp-diffslists, ps, sgolemon

Differential Revision: D1330503

Pulled By: @JoelMarcey
keep soap function ordering

Summary: suprisingly phpunit and composer both call this function. Lets keep the order I guess.

I also fixed the import script after @jwatzman moved it.

Closes #2509

Reviewed By: fredemmott

Subscribers: hphp-diffslists, ps, dmitrys, jwatzman

Differential Revision: D1331545
remove redundant code i just added

Summary: the real fix as pointed out by apukey in https://github.com/facebook/hhvm/commit/546714aa172d52b538435715e56180a9b4c4bc43 is to just move this after

Reviewed By: fredemmott

Subscribers: hphp-diffslists, ps, dmitrys

Differential Revision: D1331511
include reason in fastcgi response

Summary: Closes #2226

Reviewed By: fredemmott

Subscribers: hphp-diffslists, ps, dmitrys

Differential Revision: D1331050
Allow setting of RuntimeOptions when building a repo

Summary: The Apache extension defaults to off in cli mode,
which means that it doesn't load by default when building a
repo, which means that whole program analysis doesn't know about
any of its functions. If you want it, you need to enable it at
build time - which means passing in RuntimeOptions.

Reviewed By: bertrand

Subscribers: hphp-diffslists, ps

Differential Revision: D1331751
Add XHP callable attribute support

Summary: fixes facebook/hhvm#2432

Reviewed By: sparker

Subscribers: hphp-diffslists, ps, amenghra

Differential Revision: D1330389
change the size of the shared heap

Summary: There are now cases were we hit the limit (on large revision control changes).
It's only at peak, I guess most users have not noticed because they don't have branches
that are old enough.
Since this is virtual memory, it doesn't change much in terms of memory usage (although,
virtual memory is not completely free, it's relatively cheap).

Reviewed By: eletuchy

Subscribers: hphp-diffslists, ps, jwatzman, ptc

Differential Revision: D1330778
incremental mode speedup

Summary: We need to constantly add new dependencies in incremental mode.
The problem is that the list of dependencies for a single object can become pretty
large. When that happens, we have to scan the elements in sequence.

I added a new hash table that is used to check if a dependency exists.
It's a 2X speedup in incremental mode.

Reviewed By: eletuchy

Subscribers: hphp-diffslists, ps, jwatzman, ptc

Differential Revision: D1330760
moving 2 functions out of typing_defs

Summary: moved 2 functions from typing_defs to typing_inherit.
Typing_defs should only contain type definitions or globals used for type-checking.

Reviewed By: eletuchy

Subscribers: hphp-diffslists, ps, jwatzman, ptc

Differential Revision: D1330993
EZC: on entry, clear EG(exception)

Summary: We don't want the called functions to think an exception is active when they are entered.
Closes #2516

Reviewed By: ptarjan

Subscribers: trunkagent, hphp-diffslists, ps

Differential Revision: D1328624

Pulled By: @JoelMarcey
Correct fix for htmlspecialchars

Summary: Reverts PR #2549
refs #2549
fixes #1436
cc cgcai

Use ParamCoerceMode for this instead. Extended the tes from PR #2549

Reviewed By: joelm

Subscribers: hphp-diffslists, ps

Differential Revision: D1331843
precolor NativeCall, CallBuiltin, Shr/l, and TVs

Summary: Add precoloring to XLS.  Each use gets a register-pair hint,
based on the needs of instructions that define it or use it.
Added automatic support for NativeCall and CallBuiltin since
we can see what registers they will need.  But no support
for the (many) instructions that internally use a call.
we could add many cases for them, too, over time.

Changed the reserved XMM registers from xmm0,1 to xmm6,7
so that xmm0/1 can be used for argument/return value hints.
xmm6/7 have the same encoding size but are much less likely
to be used for parameter passing.

Reviewed By: ottoni

Subscribers: trunkagent, hphp-diffslists, ps

Differential Revision: D1321734

Tasks: 3098678
Fixes in SOAP for Magento

Summary: This PR fixes a handful of Zend SOAP tests that specifically affect Magento. It may need to be split into multiple commits, but I was in a bit of a hurry.

* Typo in the XML response code - the `itemType` attribute was getting the `arraySize` value instead of the type.
```C++
 -                    replaced.c_str());
 +                    array_type.c_str());
```
* Not using `soap_obj` passed as argument to `valid_function()` when type is `SOAP_CLASS`. This caused null pointer exceptions in Magento's SOAP API.
```
 -  if (server->m_type == SOAP_OBJECT || server->m_type == SOAP_CLASS) {
 +  if (server->m_type == SOAP_OBJECT) {
```
* Fixed unrelated Zend SOAP test to allow throwing SoapFault exceptions from XML mapping functions
```
 +  } catch (Object &e) {
 +    if (e->o_instanceof("SoapFault")) {
 +      send_soap_server_fault(function, e, NULL);
 +      return;
 +    }
 +    throw e;
```
Closes #2629

Reviewed By: fredemmott

Subscribers: hphp-diffslists, ps

Differential Revision: D1332737

Pulled By: @JoelMarcey
Add hack-for-hiphop provide requirement in emacs

Summary: Emacs fix for installation

Does it miss

````lisp
(provide 'hack-for-hiphop)
````
as the end of .el file ?
Closes #2668

Reviewed By: pad

Subscribers: eletuchy, rhe, hphp-diffslists, ps, jwatzman, ptc, fredemmott, ptarjan

Differential Revision: D1329516

Pulled By: @JoelMarcey
Emit WaitHandle::getWaitHandle()

Summary: Emit WaitHandle::getWaitHandle() and avoid overhead of C++ builtin.

Maybe it will get inlined and become a noop?

Reviewed By: aravind

Subscribers: trunkagent, hphp-diffslists, jan, ps, bill

Differential Revision: D1332674
Simplify IsWaitHandle of a WaitHandle to true

Reviewed By: aravind, jan

Subscribers: hphp-diffslists, ps

Differential Revision: D1330432

Tasks: 3197024