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
F19508601: D20942.diff
Sat, Jan 10, 7:26 AM
F19357704: D20942.diff
Fri, Dec 26, 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
F18830874: D20942.diff
Oct 25 2025, 9:23 AM
F18826535: D20942.id.diff
Oct 24 2025, 4:27 AM
F18823434: D20942.id49900.diff
Oct 23 2025, 11:57 AM
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