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
F13275619: D20942.diff
Fri, May 31, 4:59 AM
F13271139: D20942.diff
Wed, May 29, 4:36 PM
F13262354: D20942.diff
Mon, May 27, 2:03 AM
F13212381: D20942.diff
Fri, May 17, 6:39 AM
F13203905: D20942.diff
Wed, May 15, 12:12 AM
F13195936: D20942.diff
Sun, May 12, 10:46 PM
F13184680: D20942.id49899.diff
Fri, May 10, 10:00 PM
F13178582: D20942.diff
Wed, May 8, 8:31 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