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
F19923333: D20942.diff
Tue, Apr 7, 2:30 AM
F19899113: D20942.diff
Sun, Mar 29, 6:03 PM
F19807513: D20942.id49899.diff
Mar 3 2026, 3:24 AM
F19807512: D20942.id.diff
Mar 3 2026, 3:24 AM
F19807499: D20942.id49899.diff
Mar 3 2026, 3:18 AM
F19807498: D20942.id.diff
Mar 3 2026, 3:18 AM
F19804548: D20942.diff
Mar 2 2026, 8:19 AM
F19633353: D20942.diff
Feb 5 2026, 6:56 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