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
F14086820: D20942.id49899.diff
Sat, Nov 23, 4:53 PM
F14086819: D20942.id49900.diff
Sat, Nov 23, 4:53 PM
F14086816: D20942.id.diff
Sat, Nov 23, 4:53 PM
Unknown Object (File)
Sat, Nov 23, 5:11 AM
Unknown Object (File)
Fri, Nov 22, 3:22 PM
Unknown Object (File)
Mon, Nov 18, 5:11 AM
Unknown Object (File)
Fri, Nov 15, 11:43 PM
Unknown Object (File)
Thu, Nov 14, 1:29 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
Branch
magic
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23725
Build 32623: Run Core Tests
Build 32622: arc lint + arc unit