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
F15436623: D20942.diff
Tue, Mar 25, 3:30 PM
F15418347: D20942.diff
Thu, Mar 20, 10:42 PM
F15404922: D20942.id49899.diff
Tue, Mar 18, 9:40 AM
Unknown Object (File)
Feb 25 2025, 6:22 AM
Unknown Object (File)
Feb 23 2025, 1:27 AM
Unknown Object (File)
Feb 17 2025, 8:17 PM
Unknown Object (File)
Feb 9 2025, 8:31 AM
Unknown Object (File)
Feb 9 2025, 8:31 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