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
F19633353: D20942.diff
Thu, Feb 5, 6:56 AM
F19539509: D20942.diff
Wed, Jan 21, 7:45 PM
F19516850: D20942.diff
Thu, Jan 15, 4:47 AM
F19508601: D20942.diff
Jan 10 2026, 7:26 AM
F19357704: D20942.diff
Dec 26 2025, 7:57 AM
F19024781: D20942.id.diff
Nov 24 2025, 4:19 AM
F19023006: D20942.diff
Nov 23 2025, 11:07 PM
F18897226: D20942.diff
Nov 7 2025, 4:57 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