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
F14417194: D20942.diff
Wed, Dec 25, 12:38 AM
Unknown Object (File)
Fri, Dec 20, 3:55 PM
Unknown Object (File)
Sat, Dec 14, 5:32 PM
Unknown Object (File)
Sat, Dec 14, 5:28 PM
Unknown Object (File)
Wed, Dec 11, 11:34 PM
Unknown Object (File)
Tue, Dec 10, 11:51 PM
Unknown Object (File)
Sun, Dec 8, 9:57 AM
Unknown Object (File)
Sat, Dec 7, 9:11 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