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)
Sat, Apr 20, 5:00 PM
Unknown Object (File)
Fri, Apr 19, 6:30 PM
Unknown Object (File)
Thu, Apr 18, 7:26 PM
Unknown Object (File)
Thu, Apr 18, 3:14 AM
Unknown Object (File)
Thu, Apr 11, 10:11 AM
Unknown Object (File)
Sat, Apr 6, 9:14 PM
Unknown Object (File)
Thu, Apr 4, 9:44 AM
Unknown Object (File)
Thu, Apr 4, 9:39 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