Deprecate support for magic_quotes_gpc and register_long_arrays, closes #1402 and closes #1403