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
Unknown Object (File)
Tue, Aug 25, 3:17 AM
Unknown Object (File)
Mon, Aug 24, 5:28 PM
Unknown Object (File)
Fri, Aug 7, 5:22 AM
Unknown Object (File)
Jul 13 2026, 6:30 AM
Unknown Object (File)
Jun 29 2026, 10:25 AM
Unknown Object (File)
Jun 26 2026, 3:51 AM
Unknown Object (File)
Jun 26 2026, 3:51 AM
Unknown Object (File)
Jun 26 2026, 3:51 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