Deprecate support for magic_quotes_gpc and register_long_arrays, closes #1305 and closes #1306