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
F18808396: D20942.id49900.diff
Sun, Oct 19, 6:19 AM
F18808392: D20942.id49899.diff
Sun, Oct 19, 6:18 AM
F18808391: D20942.id.diff
Sun, Oct 19, 6:17 AM
F18804668: D20942.diff
Sat, Oct 18, 10:34 AM
F18802959: D20942.id49899.diff
Fri, Oct 17, 9:04 PM
F18745737: D20942.diff
Fri, Oct 3, 9:05 AM
F18656366: D20942.diff
Mon, Sep 22, 10:16 PM
F18651939: D20942.diff
Sep 21 2025, 6:06 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable