fix ini_get_all() test assuming version number starts with 1

Incorrect test.

Reviewed By: @ptarjan

Differential Revision: D1148309
fix apache mod_fastcgi

It turns out the SCRIPT_FILENAME was the wrong thing to trust. That is the config option that is used for nginx, but it isn't what goes on the wire. In nginx, apache mod_fastcgi and mod_fastcgi_proxy all seem to send this as the absolute path, so lets use it.

Closes #1663

Reviewed By: @scannell

Differential Revision: D1148606
fixup server variables

The original diff introducting these was wrong (compared to php-fpm)

* You shouldn't normalize the params, just copy them as is
* They should be available in `$_ENV` and `getenv` too
* They should overwrite anything else in the environment or server

Closes #1650

Reviewed By: @scannell

Differential Revision: D1146519
change HTTPS to 'on'

This is what zend does and many frameworks assume it, so lets folly their lead.

Reviewed By: @alexmalyshev

Differential Revision: D1148181
Don't trigger recursion detection for ArrayData:equal(same_array_data, ...)

Shortcut in the trivial case.

Closes #1667

Reviewed By: @ptarjan

Differential Revision: D1148989
Fix get_included_files order

Closes #1584
Closes #1389

Reviewed By: @ptarjan

Differential Revision: D1145826
Make user classes appear after builtins in get_declared_classes()

Used by phpunit.

Reviewed By: @ptarjan

Differential Revision: D1147707