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
F18082248: D20942.diff
Tue, Aug 5, 4:49 AM
F17847342: D20942.id49899.diff
Sun, Jul 27, 6:03 AM
F17841798: D20942.id49900.diff
Sat, Jul 26, 10:52 PM
F17823235: D20942.diff
Sat, Jul 26, 4:27 AM
Unknown Object (File)
Jun 19 2025, 1:17 PM
Unknown Object (File)
Jun 19 2025, 7:09 AM
Unknown Object (File)
Jun 16 2025, 11:36 PM
Unknown Object (File)
Jun 13 2025, 12:34 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