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
F15505524: D20942.id49899.diff
Tue, Apr 15, 3:50 AM
F15503092: D20942.id49900.diff
Mon, Apr 14, 6:46 AM
F15502094: D20942.diff
Sun, Apr 13, 10:39 PM
F15495606: D20942.id.diff
Sun, Apr 13, 5:09 AM
F15494366: D20942.diff
Sat, Apr 12, 11:27 PM
F15472160: D20942.diff
Sat, Apr 5, 11:09 AM
F15472055: D20942.id49900.diff
Sat, Apr 5, 10:46 AM
F15468542: D20942.id49899.diff
Fri, Apr 4, 1:57 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
Branch
magic
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23725
Build 32623: Run Core Tests
Build 32622: arc lint + arc unit