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
F18567585: D20942.id.diff
Tue, Sep 9, 3:56 PM
F18475357: D20942.id49899.diff
Tue, Sep 2, 11:27 PM
F18242781: D20942.id.diff
Thu, Aug 21, 4:35 AM
F18238773: D20942.diff
Wed, Aug 20, 10:52 PM
F18100828: D20942.id.diff
Aug 9 2025, 12:07 PM
F18082248: D20942.diff
Aug 5 2025, 4:49 AM
F17847342: D20942.id49899.diff
Jul 27 2025, 6:03 AM
F17841798: D20942.id49900.diff
Jul 26 2025, 10:52 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