Fix libzip to check zip archive members pointer before freeing.

This is a patch for #1754. The actual fix is already in the master
branch of the source library:
http://hg.nih.at/libzip/comparison/8cc36648e0a2/lib/zip_fclose.c
Temporarily use fredemmott branch of Laravel

Not yet merged, ongoing discussion about which branch it should be merged into

Reviewed By: @JoelMarcey

Differential Revision: D1165257
Fixes for Code Model for query expressions.

The serialization code for query expressions did not match the actual code model in a various places. Also, the model for into expressions was incorrect. Also changed the way that order by AST nodes are constructed because the tokens for ascending and descending always report 0 as their token id value.

Reviewed By: @paroski

Differential Revision: D1157921
More mysqli fixes

- When calling mysqli->prepare() and the statement failed for some reason move the errors from the statement object to the mysqli object
- Remove typing for real_escape_string and friends. In the end they all call mysql_real_escape_string which will handle the typing

Reviewed By: @ptarjan

Differential Revision: D1162521
stop making that dumb dump.txt

The `.skipif` files turned out to be making it. Great.

Reviewed By: @scannell

Differential Revision: D1162446
Fastcgi execution file implementation fixes

Make the fastcgi implementation more robust in detecting the
filename to execute.
Support for files outside of document root.
Removed Duplicate CopyPathInfo so it only does this once.

Closes #1702
Closes #1708

Reviewed By: @scannell

Differential Revision: D1159825

Pulled By: @ptarjan
Correctly handle invalidated POST data on upload path

DecodeRfc1867 was returning a data and length pointer that were being copied and saved for use with php://input.  In the case where AlwaysPopulateRawPostData is false, data will actually point to the last chunk received, but size will be the cumulative size of the post.  There's nothing meaningful that can be done with this data, just ignore it.

The data copy immediately prior to DecodeRfc1867 was unecessary when AlwaysPopulate was off, but for a silly realloc call in read_post.  Reworked this case to avoid the realloc/memcpy and just read directly from the network buffer.  While I was there, I corrected some integer types that could cause problems for POSTs > 2GB.

Reviewed By: @ptarjan

Differential Revision: D1164497
Add control of number of threads and running like PHPUnit

Add two options:

1. To specify the number of threads the runner should use run running a set
of framework tests.

2. To allow one to specify that framework tests should be run just like they
would be with normal PHPUnit. This has the effect, essentially, of setting
the Framework $parallel member to false at the command line. This setting
could cause the testing to stop in its tracks with a fatal, just like
PHPUnit stops too.

Pear actually is --as-phpunit by default (with the override of $parallel = false)
in its constructor, because it breaks otherwise.

Reviewed By: @ptarjan

Differential Revision: D1165221
Remove unused IR instructions StMemNT and StPropNT

They aren't used.

Reviewed By: @jdelong

Differential Revision: D1165571
StMem sometimes is used to store to RefData, don't allow SIMD.

Storing a 16-byte SIMD register to a RefData clobbers the
RefData's refcount field.

Reviewed By: @ottoni

Differential Revision: D1164200
Bump assetic to latest master

Release branch tests fail in Zend too.

Reviewed By: @JoelMarcey

Differential Revision: D1165620
Do not crash in mysql function if result is freed and used again

- If res->get() is NULL we need to return NULL
- Used here for example diffusion/FBCODE/browse/master/hphp/runtime/ext/mysql/ext_mysql.cpp;d2a96349bfb09871$750
- Then diffusion/FBCODE/browse/master/hphp/runtime/ext/mysql/ext_mysql.cpp;d2a96349bfb09871$761-762 we get the MYSQL_RES and call mysql_num_rows but if MYSQL_RES is null that crash.

Reviewed By: @ptarjan

Differential Revision: D1165390
Disallow create_function in RepoAuthoritative mode

This is as bad as eval.  Trivial cases with a constant second
argument are unfolded by hphpc right now, but there's hardly any of
these in www anymore.

Reviewed By: @elgenie

Differential Revision: D1162235
t3370551: Different handling of default minutes/seconds in DateTime:createFromFormat() in PHP and HHVM @override-unit-failures

Reviewed By: @ptarjan

Differential Revision: D1150249
Remove outdated inconsistencies

Remove outdated inconsistencies

Reviewed By: @edwinsmith

Differential Revision: D1166188
Call objcopy only once

On Linux, a trivial recompile, e.g.

  touch random-file.cpp; make

is sped up, for me, by 60% (going from 10m to 4m).
Target 2.5.0

2.4.0 is released
Merge pull request #1773 from jeffchan/libzip-hotfix

Fix libzip to check zip archive members pointer before freeing