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
F19024781: D20942.id.diff
Mon, Nov 24, 4:19 AM
F19023006: D20942.diff
Sun, Nov 23, 11:07 PM
F18897226: D20942.diff
Fri, Nov 7, 4:57 PM
F18830874: D20942.diff
Oct 25 2025, 9:23 AM
F18826535: D20942.id.diff
Oct 24 2025, 4:27 AM
F18823434: D20942.id49900.diff
Oct 23 2025, 11:57 AM
F18821460: D20942.diff
Oct 22 2025, 11:21 PM
F18808396: D20942.id49900.diff
Oct 19 2025, 6:19 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