Page MenuHomePhabricator

Guard call to "get_magic_quotes_gpc()" with "@" to silence PHP 7.4+ warning
ClosedPublic

Authored by epriestley on Jan 14 2020, 8:21 PM.
Tags
None
Referenced Files
F18242781: D20942.id.diff
Thu, Aug 21, 4:35 AM
F18238773: D20942.diff
Wed, Aug 20, 10:52 PM
F18100828: D20942.id.diff
Sat, Aug 9, 12:07 PM
F18082248: D20942.diff
Tue, Aug 5, 4:49 AM
F17847342: D20942.id49899.diff
Jul 27 2025, 6:03 AM
F17841798: D20942.id49900.diff
Jul 26 2025, 10:52 PM
F17823235: D20942.diff
Jul 26 2025, 4:27 AM
Unknown Object (File)
Jun 19 2025, 1:17 PM
Subscribers
None

Details

Summary

Fixes T13471. Recent versions of PHP raise a warning when this function is called.

We're only calling it so we can instantly fatal if it's enabled, so use "@" to silence the warning.

Test Plan

Loaded site; see also T13471 for a user reporting that this fix is effective.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable